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
Is oop better than procedural?
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).
What is coupling in oops?
What are oops methods?
What is the benefit of oop?
What is polymorphism in oops with example?
What is destructor oops?
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?
What type of loop is a for loop?
What is solid in oops?
Give an example where we have to specifically use C programming language and C++ programming language cannot be used?
What are the important components of cohesion?
what is the drawback of classical methods in oops?
What is a null tree?
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.