1.

Passing an object using copy constructor and pass by value are same.(a) True(b) FalseThis question was posed to me in an online quiz.This question is from Passing and Returning Object with Functions topic in portion Object of Object Oriented Programming

Answer»

Correct option is (B) False

To explain: The copy constructor is used to copy the VALUES from ONE object to other. PASS by values is not same as copy constructor method. Actually the pass by value method uses a copy constructor to copy the values in a LOCAL object.



Discussion

No Comment Found

Related InterviewSolutions