State two differences between a class and an object.
Question : State two differences between a class and an object.
A class | An object |
Class is a blueprint or template from
which objects are created | Object is an instance of a class |
Class is a group of similar objects. | Object is a real world entity such as pen,
laptop, mobile, bed, keyboard, mouse, chair
etc. |
Class is a logical entity | Object is a physical entity. |