Advertisements
Advertisements
Question
What is the difference between an object and a class?
Distinguish Between
Solution
The differences between an object and a class are:
S. No. | Class | Object |
1. | It is a blueprint or prototype of an object. | It is a unique entity having some characteristics and behaviour. |
2. | It is known as 'Object Factory'. | It is known as an 'Instance of a Class'. |
shaalaa.com
Is there an error in this question or solution?