why object is an instance of class
Answers
Answered by
2
Answer:
An Object is an instance of a Class. When a class is defined, no memory is allocated but when it is instantiated (i.e. an object is created) memory is allocated. A class is defined in C++ using the keyword class followed by the name of the class.
HOPE IT HELPS YOU AND PLZZ MARK ME AS BRAINLIST
Answered by
2
Question:-
- Why object is an instance of class?
Answer:-
Since an object possesses instant variables and member methods defined within the class, it is called an instance of a class.
Similar questions