What is multiple inheritance? Give Example
Answer Posted / hemanth
When class is derived from more than one base class, it is
called as multiple inheritance.
Class a {
int b;
public:
void fun();
}
Class C {
int d;
public:
void fun();
}
Class d :public a, public c {
int x;
void fun1();
}
----------
Here class d inherits class a and c, hence multiple inheritance.
| Is This Answer Correct ? | 33 Yes | 0 No |
Post New Answer View All Answers
String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?
assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).
how to get the oracle certification? send me the answer
Why is it so that we can have virtual constructors but we cannot have virtual destructors?
What is oops?what is its use in software engineering?
What are the 4 main oop principles?
can we make game by using c
What is encapsulation example?
What is an example of genetic polymorphism?
write knight tour problem which is present in datastructure
Get me an image implementation program.
Templates mean
What does and I oop mean in text?
What are the types of abstraction?
What is destructor in oop?