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
What are the benefits of oop?
What is encapsulation oop?
How do you define a class in oop?
What is variable example?
write string class as your own class in java without using any built-in function
What is use of overloading?
Is data hiding and abstraction same?
What is the purpose of polymorphism?
What is destructor in oop?
Which type does string inherit from?
what type of question are asked in thoughtworks pair programming round ?
is there any choice in opting subjects like 4 out of 7
What polymorphism means?
What is polymorphism and why is it important?
Write a c++ program to display pass and fail for three student using static member function