Class
-> Class is the blue print to object creation
-> It provide initial value for state (variable) and implementations of behavior (method).
Object:
-> Object is the instance of the class
-> Object is created using new keyword at the run time it allocate the memory in heap
Ex:
ClassName objectName = new ClassName();
Top comments (0)