Logo 
Search:

C++ Programming FAQ

Submit Interview FAQ
Home » Interview FAQ » C++ ProgrammingRSS Feeds

Which statement(s) is true about the visibility of inherited members? - Select option

  Shared By: Adalwolf Fischer    Date: Oct 13    Category: C++ Programming    Views: 1084

Answer:

Option

a) When a class is inherited in protected mode, the private members of the base class become protected members of the derived class
b) When a class is inherited in private mode, only the public members of the base class can be inherited to the derived class
c) When a class is inherited in public mode, the private members of the base class cannot be inherited
d) None of the above

Answer : c) When a class is inherited in public mode, the private members of the base class cannot be inherited

Share: 
 



Your Comment
  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].


Tagged: