KnowledgeBoat Logo

Computer Applications

Why is an Object called an 'Instance' of a class? Explain.

Objects & Classes

ICSE 2010

ICSE 2017

285 Likes

Answer

The data members declared within a class are also known as instance variables. When an object of a class is created, it includes instance variable described within the class. This is the reason that an object is called an instance of a class.

Answered By

156 Likes


Related Questions