1.

Which is private member functions access scope?(a) Member functions which can only be used within the class(b) Member functions which can used outside the class(c) Member functions which are accessible in derived class(d) Member functions which can’t be accessed inside the classThe question was asked in an online quiz.Question is taken from Private Member Functions in division Member Functions & its Types of Object Oriented Programming

Answer» RIGHT answer is (a) MEMBER functions which can only be used within the class

Easy explanation - The member functions can be accessed inside the class only if they are PRIVATE. The access is scope is limited to ensure the SECURITY of the private MEMBERS and their usage.


Discussion

No Comment Found

Related InterviewSolutions