Advertisements
Advertisements
Question
'Object is an Instance of a class.' Explain this statement.
Explain
Solution
A class is a blueprint for an object. When defining a class, only the attributes shared by all its objects are stored in memory, and no more space is required. Additionally, when a class object is formed, it includes the class's instance variables. This explains why an object is referred to as a class instance.
shaalaa.com
Is there an error in this question or solution?