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.

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

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

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

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

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

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

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

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

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)

Post your comments here:

Your comments will be displayed after verification.