1.

How many objects can be passed to a function simultaneously?(a) Only 1(b) Only an array(c) Only 1 or an array(d) As many as requiredThe question was posed to me in an interview for internship.I want to ask this question from Passing and Returning Object with Functions in division Object of Object Oriented Programming

Answer»

Correct option is (d) As many as required

The EXPLANATION is: There is no limit to how many objects can be PASSED. This works in same way as that any other VARIABLE GETS passed. Array and object can be passed at same time ALSO.



Discussion

No Comment Found

Related InterviewSolutions