ANSWER 1
Class is a blueprint or template from which objects are created. Object is a real world entity such as pen, laptop, mobile, bed, keyboard, mouse, chair etc. Class is a group of similar objects. Object is a physical entity.
ANSWER 2
Class | Object |
---|---|
Class is used as a template for declaring and creating the objects. | An object is an instance of a class. |
When a class is created, no memory is allocated. | Objects are allocated memory space whenever they are created. |