Logo 
Search:

C++ Programming FAQ

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

Which feature of C++ does allow you to handle such kind of mulitpath inheritance?

  Shared By: Voliny Fischer    Date: Aug 04    Category: C++ Programming    Views: 1032

Answer:

Consider a class D, which is inherited from two classes B and C. The classes B and C inherited the members from class A. Which feature of C++ does allow you to handle such kind of multipath inheritance?

Options

a) Abstract class
b) Virtual base class
c) Duplicate class
d) None of the above

Answer : b) Virtual base class

Share: 
 



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


Tagged: