| 1. |
Mention The Difference Between An Object And A Class ? |
|
Answer» A class is a definition for a description. It DEFINES a type in terms of methods and composition of other types. A class is a blueprint of the object. While, an object is a singleton, an instance of a class which is unique. An anonymous class is created for every object in the CODE, it inherits from whatever CLASSES you DECLARED object to implement. A class is a definition for a description. It defines a type in terms of methods and composition of other types. A class is a blueprint of the object. While, an object is a singleton, an instance of a class which is unique. An anonymous class is created for every object in the code, it inherits from whatever classes you declared object to implement. |
|