Logo 
Search:

C++ Programming FAQ

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

Which functions can have access to the private and protected members of a class?

  Shared By: Sam Evans    Date: Dec 02    Category: C++ Programming    Views: 970

Answer:

Options

a) A member function of a class that is a friend of the class
b) A member function of a derived class
c) A function that is a friend of the class
d) All of the above

Answer : d) All of the above

Share: 
 



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


Tagged: