class object
1. class is blue print from which objects 2. object is an instance of a class
are created .
2. class is a group of similar objects . 2. object is a real world intity such as chair , pen,
table , laptop etc.
3. class is a logically entity . 3. object is created many times as per requirement.
4. class doesn't allocated memory when it is 4. object allocates memory when it is created .
created . 5. object is a variables .
5. class is a type . 6. The purpose of class is looping of data .
6. The perpose of object is data abstraction . 7. We can create object as many times as we want
7. We can create only class once . according to requirement .
0 Comments