1.

A single object can be used __________________(a) As only two class types at a time(b) As only three class types at a time(c) As only one class type at a time(d) As of as many class types as requiredI had been asked this question during a job interview.I need to ask this question from Object Use in chapter Object of Object Oriented Programming

Answer»

Correct answer is (c) As only one class TYPE at a time

To explain: The object can be of only one type. The type of an object can’t be changed. Object type is mandatory to be of one class type to ENSURE the type and NUMBER of data members it have.



Discussion

No Comment Found

Related InterviewSolutions