what is single inheritance?

Answer Posted / alameen

In "single inheritance," a common form of inheritance,
classes have only one base class. Consider the relationship
illustrated in the following figure.
Simple Single-Inheritance Graph


Note the progression from general to specific in the
figure. Another common attribute found in the design of
most class hierarchies is that the derived class has
a "kind of" relationship with the base class. In the
figure, a Book is a kind of a PrintedDocument, and a
PaperbackBook is a kind of a book.
One other item of note in the figure: Book is both a
derived class (from PrintedDocument) and a base class

Is This Answer Correct ?    8 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the benefits of oop?

705


What is encapsulation oop?

673


How do you define a class in oop?

731


What is variable example?

674


write string class as your own class in java without using any built-in function

2064






What is use of overloading?

726


Is data hiding and abstraction same?

662


What is the purpose of polymorphism?

763


What is destructor in oop?

701


Which type does string inherit from?

714


what type of question are asked in thoughtworks pair programming round ?

1848


is there any choice in opting subjects like 4 out of 7

1822


What polymorphism means?

703


What is polymorphism and why is it important?

652


Write a c++ program to display pass and fail for three student using static member function

2922