Computer Applications
Why is an Object called an 'Instance' of a class? Explain.
Objects & Classes
ICSE 2010
ICSE 2017
285 Likes
Answer
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.
Answered By
156 Likes
Related Questions
A statement is given as:
'Study_Table' is an object of the class 'Furniture'. Write down Java statement for the same.
Write a statement to create an object 'Keyboard' of the class 'Computer'.
Mention three characteristics and two methods for the following Classes:
Class Mobile Phone
Class and Objects are inter-related. Explain.