Home / Questions / Why is an Object called an 'Instance' of a class? Explain.
Explanatory Question

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

👁 106 Views
📘 Detailed Answer
🕒 Easy to Read
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.

Answer with Explanation

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.