Computer Science, asked by Darshankrishna, 9 months ago

why object is an instance of class​

Answers

Answered by suhee
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 anindyaadhikari13
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