While creating a node in linked list we use class name as type ,why so?
8/18/2019 12:30:11 PM
Because you want to keep a reference to the object of that type. List is list of nodes linked together. Class is just a user defined type. It's usage in terms of declaration/definition is same as primitive datatypes.
whenever you create object from class you must use class as typename
GET THE FREE APP
Learn Playing. Play Learning
Send us a message