InterviewSolution
Saved Bookmarks
| 1. |
If private member functions are to be declared in C++ then _____________(a) private: (b) private (c) private(private member list)(d) private :- This question was addressed to me by my school principal while I was bunking the class.Question is taken from Private Member Functions topic in section Member Functions & its Types of Object Oriented Programming |
|
Answer» RIGHT answer is (a) private: To EXPLAIN I WOULD say: The private members doesn’t have to have the keyword with each private member. We only have to specify the keyword private followed by single COLON and then private member’s are listed. |
|