InterviewSolution
Saved Bookmarks
| 1. |
Difference Between Class And An Object? |
|
Answer» An object is an instance of a class. Objects hold any information , but CLASSES don’t have any information. Definition of properties and FUNCTIONS can be DONE at class and can be USED by the object.Class can have sub-classes, and an object doesn’t have sub-objects. An object is an instance of a class. Objects hold any information , but classes don’t have any information. Definition of properties and functions can be done at class and can be used by the object.Class can have sub-classes, and an object doesn’t have sub-objects. |
|