1.

The arguments passed to member functions by reference are considered as data members of class.(a) True(b) FalseThe question was posed to me during an interview.This intriguing question comes from Data Members topic in section Class Members & Types of Object Oriented Programming

Answer»

The correct option is (b) False

Best explanation: This is a wrong STATEMENT. As only the data defined inside CLASS is considered as its member. But even if a variable is PASSED by reference it would be the same variable that is outside the class. HENCE it can’t be considered class member.



Discussion

No Comment Found

Related InterviewSolutions