Class:
- Class is a Template or BluePrint or set of instructions to build a specific type of object.
- Class doesn't hold any memory.
- Class is a Logical Entity.
- Class in java determines how an object will behave and what the object will contain.
Object:
- Object is a Physical Entity or Real-time Entity.
- Object represents Class.
- Object is memory reference of a class.
- Object is a member of a class.
- Object is an instance of a class.
- Object is combination of state and behaviours.
- The state of an object is stored in a field or variable.
- The behaviour of an object is defined by methods.
- Objects are created at runtime from templates, which are also know as classes.
SOCIAL SHARE CARD GENERATOR