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
What is inheritance in oop?
What does and I oop and sksksk mean?
What is the real time example of inheritance?
Describe these concepts: Polymorphism, Inheritance and Abstraction.
given a set based questions and 5 questions based on it next data sufficiciency questions 2 and 2/3 english sentence completion with options very easy and 2 synononmys paragraph with 10 questions 10 minutes replace =,-,*,% with -,%,+,* type questions 5 3 questions lik following itssickhere itssickthere itssickhere istsickhere which is nt alike the others very easy
What is the purpose of enum?
What is the advantage of oop over procedural language?
Write a c++ program to display pass and fail for three student using static member function
Advantage and disadvantage of routing in telecom sector
What is the difference between static polymorphism and dynamic polymorphism?
what are the different types of qualifier in java?
What is meant by multiple inheritance?
i got a backdoor offer in process global,Bangalore..Can i work with it?
Why do we use oop?
What is class encapsulation?