✏️ Explanatory Question

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

👁 109 Views
📘 Detailed Answer
🟢 Easy
💡

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.