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

Why polymorphism is used in oops?

777


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).

1885


write a programe to calculate the simple intrest and compund intrest using by function overlading

1880


Give two or more real cenario of virtual function and vertual object

2057


What does <> mean pseudocode?

823


What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?

1879


What is a null tree?

844


can we make game by using c

3706


What is polymorphism and its types?

796


What is ambiguity in inheritance?

830


What does and I oop mean in text?

839


What is an advantage of polymorphism?

811


what's the basic's in dot net

1908


What is the purpose of polymorphism?

864


program for insertion ,deletion,sorting in double link list

2435