What is multiple inheritance? Give Example
Answer Posted / shree
class one
{
int a;
Public void Add();
}
Class Two
{ int b;
Public void Sub();
}
class Three:class one , class two
{
int c;
Public void Mul();
}
In this last class we inherited first two class that is more than one base class so mulptiple inheritance.
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
explain sub-type and sub class? atleast u have differ it into 4 points?
Describe these concepts: Polymorphism, Inheritance and Abstraction.
Give two or more real cenario of virtual function and vertual object
Prepare me a program for the animation of train
What is a null tree?
What is the advantage of oop over procedural language?
What is oops and why we use oops?
What is class encapsulation?
What is static in oop?
What is debug class?what is trace class? What differences are between them? With examples.
c++ program to swap the objects of two different classes
Which is not an object oriented programming language?
Why is it so that we can have virtual constructors but we cannot have virtual destructors?
What is abstraction with example?
Give an example where we have to specifically use C programming language and C++ programming language cannot be used?