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
Write a program to reverse a string using recursive function?
What is the difference between a mixin and inheritance?
Is data hiding and abstraction same?
write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.
What is the oops and benefits of oops programming?
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
Is enum a class?
How does polymorphism work?
Why do we use polymorphism in oops?
What are constructors in oop?
What is abstraction in oop?
Can a destructor be called directly?
What is interface in oop?
What is difference between abstraction and encapsulation?
What is persistence in oop?