Answer Posted / guest
You can derive a class from any number of base
classes. Deriving a class from more than one direct base
class is called multiple inheritance.
In the following example, classes A, B, and C are
direct base classes for the derived class X:
class A { /* ... */ };
class B { /* ... */ };
class C { /* ... */ };
class X : public A, private B,
public C { /* ... */ };
The following inheritance graph describes the
inheritance relationships of the above example. An arrow
points to the direct base class of the class at the tail of
the arrow:
The order of derivation is relevant only to determine the
order of default initialization by constructors and cleanup
by destructors.
Is This Answer Correct ? | 13 Yes | 1 No |
Post New Answer View All Answers
Which language is pure oop?
what is the drawback of classical methods in oops?
What is abstraction in oop?
How do you use inheritance in unity?
What is a superclass in oop?
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 do you mean by variable?
write a program that takes input in digits and display the result in words from 1 to 1000
What is constructor in oop?
What does I oop mean?
Why interface is used?
to find out the minimum of two integer number of two different classes using friend function
Explain the concepts involved in Object Oriented programming.
What is encapsulation example?
Why is oop better than procedural?