Difference between …
 
Notifications
Clear all

Difference between Class and Object ?

2 Posts
3 Users
0 Likes
570 Views
0
Topic starter

Give explanation and real world example.

2 Answers
0

Object is an instance of a class. 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.

0

An object is an instance of a class. A class can be defined as a template/blueprint that describes the behavior/state that the object of its type support.

Share: