KnowledgeBoat Logo

Computer Applications

'Object is an instance of a class.' Explain this statement.

Java Classes

10 Likes

Answer

Class is a blueprint of an object. When a class is defined, it doesn't acquire any space in memory, it is only the attributes that must be common to all the objects of that class. Moreover, when an object of a class is created, it includes instance variables described within the class. This is the reason why an object is called an instance of a class.

Answered By

5 Likes


Related Questions