Logo 
Search:

C++ Programming FAQ

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

Which is true, if a derived class is publicly inherited from base class?

  Shared By: Charlie Evans    Date: Sep 19    Category: C++ Programming    Views: 1145

Answer:

I. The public members of the base class become public members of the derived class
II. The public members of the base class become private members of the derived class
III. The public members of the base class are inaccessible to the objects of the derived class
IV. All of the above

Options

a) I only
b) Both I and II
c) Both I and III
d) IV only

Answer : a) I only

Share: 
 



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


Tagged: