In Writing a Generic Data Structure section you defined Queue and mentioned that: Queue<Int> and Queue<String> will become concrete types of their own at runtime, that can only enqueue and dequeue strings and integers, respectively.
which I think should be: Queue<Int> and Queue<String> will become concrete types of their own at runtime, that can only enqueue and dequeue integers and strings, respectively.
so that the Queue<Int> can enqueue and dequeue integers & the Queue<String> can enqueue and dequeue strings.
Hi
Thank you for this tutorial. It has good content.
It would have been more helpful if the ‘Type’ metaType as in ‘T.Type’ which is seen in many generics related code would have also been explained.
Nice tutorial though.
Thank You