InterviewSolution
Saved Bookmarks
| 1. |
A private function of a derived class can be accessed by the parent class.(a) True(b) FalseI had been asked this question in an online quiz.I'm obligated to ask this question of Private Member Functions topic in division Member Functions & its Types of Object Oriented Programming |
|
Answer» CORRECT OPTION is (b) False To explain: If private functions GET accessed even by the parent class that will violate the rules of private members. If the functions can be accessed then the derived class SECURITY is hindered. |
|