Why is an object called an instance of a class?
Views 37
Answer:
An object is called an instance of a class because it represents a specific realization of the class with its own set of values for the attributes defined by the class. In other words, when a class is instantiated, an object is created that holds the state (data) and behaviors (methods) defined by the class.
Related Articles:
This section is dedicated exclusively to Questions & Answers. For an in-depth exploration of Java Programming Language, click the links and dive deeper into this subject.
Join Our telegram group to ask Questions
Click below button to join our groups.