1.

What is the type of elements of array of objects?(a) Class(b) Void(c) String(d) NullI had been asked this question in my homework.This intriguing question originated from Object Array topic in division Object of Object Oriented Programming

Answer»

The CORRECT answer is (a) Class

To explain I would say: The class itself is the type of elements of array of OBJECTS. All the objects possess the same properties. Like any other PRIMITIVE DATA type, the objects are of their respective class type.



Discussion

No Comment Found

Related InterviewSolutions