c) Why is an object called an instance of a class?
Answers
Answered by
137
class is a template of object. each object of a class possesses some attribute and common behaviour defined within a class . thus class is called intance of class...
Answered by
43
Answer:
In Java language, where each object is created from a class, is called an instance of that class. Creating an instance of a class is sometimes referred to as instantiating the class.
A real world example of an object would be 'dauber man', which is an instance of the class called 'dog'. As we already have discussed that the data members of a class are also referred as instant variables.
Hence, an object is referred to as an instance of a class.
Similar questions