+ 1

What is the difference between "object" and "var" types?

Also, where we can use the first and the second, and for what reason?

9th Jan 2019, 7:03 AM
Lypin Hiroshi
Lypin Hiroshi - avatar
3 Antworten
+ 5
Read on Object Oriented Programming. Start with trying the concept of 'classes'
9th Jan 2019, 8:57 AM
Da2
Da2 - avatar
+ 5
Objects are instances of a class which is a refrenece type Int is a primitive type but if you wrap it inside a interger object it becomes a refrenece type
9th Jan 2019, 9:06 AM
D_Stark
D_Stark - avatar
+ 3
After making sense of what a 'class' is, try other OOP concepts like Inheritance, Polymorphism, etc
9th Jan 2019, 9:11 AM
Da2
Da2 - avatar