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.
Class can have sub-classes, and an object doesn’t have sub-objects.
No comments:
Post a Comment