Associative Array vs Dynamic Vs Queue

  1. A dynamic array is specific for a particular data type. When it comes to an associative array, elements of an array can be of any type. We can store the concatenation of various data types or class structures as well.
    [Associative array in SystemVerilog - VLSI Verify](https://vlsiverify.com/system-verilog/associative-array-in-systemverilog/)

i’m not able to understand this line “When it comes to an associative array, elements of an array can be of any type.” what data type we declared for associative array that only we can add as elements, right? is it same in dynamic and queue, right? so what it is saying in the above statement? the link for where i took the statement also given above for reference.

I believe there is a typo in the article.
Unlike dynamic array & queues an associative array can have index as any data type ( Eg: string / enum )

bit [7:0] array_enum [tr_type];  // index type is enum type
bit [7:0] array_string[string];  // index type is string type
bit [7:0] array_int [int];       // index type is int 

Associative arrays also support wildcard * as index
A few references on it

  1. stackoverflow
  2. vlsipro
  3. associative-array