A a = new A();
here when we write "new A();" some memory will be occupied in the system.
'a' is the reference(variable) which points to this memory and is used to access the data present in this memory.
Object is the instance of a class, which is concrete. From the above example, we can create instance of class Vehicle as given below
We can have different objects of the class Vehicle, for example we can have Vehicle objects with 2 tyres, 4tyres etc. Similarly different engine capacities as well.for more visite in this site
Didn't find the answer you were looking for?