what is multi level inheritance give n example ?

Answers were Sorted based on User's Feedback



what is multi level inheritance give n example ?..

Answer / roshan p r

The best example is Say we have 3 class
ClassA,ClassB and ClassC.

ClassB is derived from ClassA and ClassC is derived ClassB
this is multi level inheritance..

ClassA
^
|
|
ClassB
^
|
|
ClassC

Is This Answer Correct ?    336 Yes 49 No

what is multi level inheritance give n example ?..

Answer / aswini.s

derived a new class from another derived class.It is known
as multilevel inheritance.
example:
grandfather->father->son.

Is This Answer Correct ?    260 Yes 33 No

what is multi level inheritance give n example ?..

Answer / itishree

A class is derive from a class which is derive from another
class is known as multilevel inheritance.
example-grandpa->papa->son
another example:
class A
{
protected:
int x;
public:
void showA()
{
cout<<"enter a value for x:"<<endl;
cin>>x;
}
};
class B:public A
{
protected:
int y;
public:
void showB()
{
cout<<"enter value for y:";
cin>>y;
}
};
class C:public B
{
public:
void showC()
{
showA();
showB();
cout<<"x*y ="<<x*y;
}
};
void main()
{
C ob1;
ob1.showc();
}

Is This Answer Correct ?    256 Yes 36 No

what is multi level inheritance give n example ?..

Answer / mohd aqeel ahmed

The best example is Say we have 3 class
ClassA,ClassB and ClassC.

ClassB is derived from ClassA and ClassC is derived ClassB
this is multi level inheritance..

ClassA
^
|
|
ClassB
^
|
|
ClassC

Is This Answer Correct ?    102 Yes 18 No

what is multi level inheritance give n example ?..

Answer / ansar ali gujjar

"A type of inheritance in which a class is derived from
another derived class is called multilevel inheritance."

in multilevel inheritace,the members of parent class are
inherited to the child class and the member of child class
are inherited to the grand child class.
for example
class A
^
class B
^
class C

Is This Answer Correct ?    66 Yes 10 No

what is multi level inheritance give n example ?..

Answer / umesh kumar vishwakarma

A class is derive from a class which is derived from another
class is known as multilevel inheritance.
example-grandpa->papa->son.

Is This Answer Correct ?    47 Yes 11 No

what is multi level inheritance give n example ?..

Answer / ashok kumar nayak

To creat a new class from a base class which is in terms of
derive from another base class is known as multilevel
inheritance.

Is This Answer Correct ?    36 Yes 12 No

what is multi level inheritance give n example ?..

Answer / simran

A->B->C

Is This Answer Correct ?    28 Yes 11 No

what is multi level inheritance give n example ?..

Answer / radha

when a derived class inherits an already created derived
class ,then it is known as multilevel inheritance.

A->B->C
HERE A IS A BASE CLASS.B IS AN INTERMEDIATE BASE CLASS ,AS
IT PROVIDES A LINK FOR THE INHERITANCE BETWEEN A & C.C IS A
DERIVED CLASS.
EG. GRANDFATHER
|
FATHER
|
CHILD

THE CHAIN IS KNOWN AS INHERITANCE PATH.

Is This Answer Correct ?    20 Yes 5 No

what is multi level inheritance give n example ?..

Answer / rani

derivation of a sub class from base class and deriving a sub class from that sub class

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More OOPS Interview Questions

Precompilation ?

1 Answers   emc2,


write a progra in c++ using class & object to find out wheather a given no. is prim or not.

2 Answers  


hi all..i want to know oops concepts clearly can any1 explain??

0 Answers   Eureka Forbes,


You have one base class virtual function how will call that function from derived class?

4 Answers  


What does and I oop and sksksk mean?

0 Answers  






What is static in oop?

0 Answers  


What is the renewal class?

0 Answers   Ebix, IBM,


what is difference between String s=new String("vali"); String s="vali"

1 Answers  


in the following, A D B G E C F Each of the seven digits from 0,1,2,3,4,5,6,7,8,9 is: a)Represented by a different letter in abov fig: b)Positioned in the fig abov so tht A*B*C,B*G*E,D*E*F are equal. wch does g represents? C

1 Answers   IonIdea,


Is data hiding and abstraction same?

0 Answers  


How do you answer polymorphism?

0 Answers  


What is an advantage of polymorphism?

0 Answers  


Categories