Logo 
Search:

C++ Programming FAQ

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

Consider the following code segment and select one of the option

  Shared By: Brenda Fischer    Date: Oct 27    Category: C++ Programming    Views: 1577

Answer:

Consider the following code segment:
class Book {……..};
class Prose : public Book {……….};
class Poetry : public Prose {……….};

The above code is an example of

Options

a) Multiple Inheritance
b) Multilevel Inheritance
c) Hierarchical Inheritance
d) Hybrid Inheritance

Answer : b) Multilevel Inheritance

Share: 
 



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


Tagged: