1.

A member function can _______________ of the same class.(a) Call other member functions(b) Call only private member functions(c) Call only static member functions(d) Call only const member functionsI had been asked this question in class test.This interesting question is from Member Functions in section Class Members & Types of Object Oriented Programming

Answer»

Correct option is (a) Call other member functions

For EXPLANATION: We can call ONE function inside another function to access some data of class. A public member function can be USED to call a PRIVATE member function which directly manipulates the private data of class.



Discussion

No Comment Found

Related InterviewSolutions