1.

How many objects can be returned at once?(a) Only 1(b) Only 2(c) Only 16(d) As many as requiredI had been asked this question in a job interview.This question is from Passing and Returning Object with Functions topic in portion Object of Object Oriented Programming

Answer»

The CORRECT option is (a) Only 1

Easiest explanation - LIKE any other VALUE, only one object can be returned at ones. The only POSSIBLE way to return more than one object is to return address of an object array. But that again comes under returning object pointer.



Discussion

No Comment Found

Related InterviewSolutions