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


Please Help Members By Posting Answers For Below Questions

Is oop better than procedural?

562


write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).

1636


What is coupling in oops?

589


What are oops methods?

561


What is the benefit of oop?

566






What is polymorphism in oops with example?

525


What is destructor oops?

613


IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?

1570


What type of loop is a for loop?

678


What is solid in oops?

593


Give an example where we have to specifically use C programming language and C++ programming language cannot be used?

1136


What are the important components of cohesion?

548


what is the drawback of classical methods in oops?

2908


What is a null tree?

621


There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.

1448