SPIRO THE TECH GURU

Back

Difference between object and class?

By Admin on

Difference between object and class

There are many differences between object and class. A list of differences between object and class are given below:

No.ObjectClass
1)Object is an instance of a class.Class is a blueprint or template from which objects are created.
2)Object is a real world entity such as pen, laptop, mobile, bed, keyboard, mouse, chair etc.Class is a group of similar objects.
3)Object is a physical entity.Class is a logical entity.
SPIRO Google Plus