C++ Programming - OOPS Concepts - Discussion

Discussion Forum : OOPS Concepts - General Questions (Q.No. 57)
57.
Which of the following statement is correct?
Class is an instance of object.
Object is an instance of a class.
Class is an instance of data type.
Object is an instance of data type.
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
9 comments Page 1 of 1.

Przemek said:   6 years ago
The 'Object is an instance of data type' is correct. Mind that it is possible to do both:

int *x = new int;

and;

B *b = new B();

Both 'b' and 'x' are pointers to objects and both 'B' and 'int' are types, but only the '*b' is an instance of a class.
(1)

Salah said:   7 years ago
Class is a blueprint so the object is its instance.

Geetha bhagi said:   7 years ago
Object is a run time entity which has well defined structure.

Lucinda said:   9 years ago
The object is an instant of the class.

Bhajendra pund said:   9 years ago
Object is run time entity and it have well define structure and behavior.

Jadhav pralhad said:   10 years ago
It is very helpful for examination point of view.

Mayur said:   10 years ago
Object is a run time entity which has well defined structure and behaviour.

Shevta said:   1 decade ago
Class is instance of data type (user defined datatype/derived data type) it is also correct.

Sudip Mandal said:   1 decade ago
Object is the run time entity and it is created to make an instance of a class.

Post your comments here:

Your comments will be displayed after verification.