C++ Programming - OOPS Concepts - Discussion

Discussion :: OOPS Concepts - General Questions (Q.No.57)

57. 

Which of the following statement is correct?

[A]. Class is an instance of object.
[B]. Object is an instance of a class.
[C]. Class is an instance of data type.
[D]. Object is an instance of data type.

Answer: Option B

Explanation:

No answer description available for this question.

Sudip Mandal said: (Jun 10, 2013)  
Object is the run time entity and it is created to make an instance of a class.

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

Mayur said: (Feb 17, 2015)  
Object is a run time entity which has well defined structure and behaviour.

Jadhav Pralhad said: (Mar 30, 2015)  
It is very helpful for examination point of view.

Bhajendra Pund said: (Jun 27, 2015)  
Object is run time entity and it have well define structure and behavior.

Lucinda said: (Apr 6, 2016)  
The object is an instant of the class.

Geetha Bhagi said: (Apr 10, 2017)  
Object is a run time entity which has well defined structure.

Salah said: (Jul 25, 2017)  
Class is a blueprint so the object is its instance.

Przemek said: (Jun 8, 2018)  
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.

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.