+ 1
What is the difference between "object" and "var" types?
Also, where we can use the first and the second, and for what reason?
3 Answers
+ 5
Read on Object Oriented Programming. Start with trying the concept of 'classes'
+ 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
+ 3
After making sense of what a 'class' is, try other OOP concepts like Inheritance, Polymorphism, etc