Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is multiple inheritance?

Answers were Sorted based on User's Feedback



What is multiple inheritance?..

Answer / guest

You can derive a class from any number of base
classes. Deriving a class from more than one direct base
class is called multiple inheritance.

In the following example, classes A, B, and C are
direct base classes for the derived class X:

class A { /* ... */ };
class B { /* ... */ };
class C { /* ... */ };
class X : public A, private B,
public C { /* ... */ };
The following inheritance graph describes the
inheritance relationships of the above example. An arrow
points to the direct base class of the class at the tail of
the arrow:



The order of derivation is relevant only to determine the
order of default initialization by constructors and cleanup
by destructors.

Is This Answer Correct ?    13 Yes 1 No

What is multiple inheritance?..

Answer / senthil.k,arasur

Multiple Inheritance occurs when a class inherits from more
than one parent.

Is This Answer Correct ?    5 Yes 0 No

What is multiple inheritance?..

Answer / jitendra rajurkar

In .Net realm a child class can inherit methods and
properties from only one parent class and that parent class
can be either abstract class or any other class.Also Child
class can inherit methods and properties from multiple
interfaces.

class DerivedClass:AbstractClass,InterafaceA,InterfaceB
{
public void main()
{
DerivedClass obj o = new DerivedClass();
o.MethodfromAbstractclass;
o.MehtodfromInterfaceA;
o.MethodfromInterfaceB;
}
}

Is This Answer Correct ?    2 Yes 0 No

What is multiple inheritance?..

Answer / a h khan

if a class is derived from more than one base class then
inheritance is known as multiple inheritance.

the syntax of multiple inheritance is :-

class D : derivations B1, derivation B2,..........
{
member of class D
}

Is This Answer Correct ?    1 Yes 0 No

What is multiple inheritance?..

Answer / p.madhupriya

one derived(child) class is takes properties from more then
one base(parent) class.

Is This Answer Correct ?    1 Yes 0 No

What is multiple inheritance?..

Answer / vikas patel

when we creat the more inheritance the help of the base
inheritance..the main use of the multiple inheritance for
creat Interface..

ex..

class A
{

}
class B
{

}
class C
inherit A,B

Is This Answer Correct ?    0 Yes 0 No

What is multiple inheritance?..

Answer / jyoti lohani

the parent class behaviour & properties are define in child
class that's call inheritance. if child class inherit more
then one parent class that call multiple inheritance.

EX: class X
{
/* ---*/
}
class y
{
/*----*/
}
class z:x,y

Is This Answer Correct ?    1 Yes 2 No

What is multiple inheritance?..

Answer / mayank kumar

in multiple inheritance there is more than one base class
and one derived class.

Is This Answer Correct ?    1 Yes 2 No

What is multiple inheritance?..

Answer / kaush

when one one class(derived class) inherit from more than one
class(base class) then it is called multiple inheritance.
like as,,
class program
{
class a
{
}
class b
{
}
class c:a,b
{
}
}

but in c# multiple inheritance not allowed.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More OOPS Interview Questions

how to tackle technical questions

1 Answers  


if u write a class do u write Assignment operator and copy constructor

1 Answers   Siemens,


Will I be able to get a picture in D drive to the c++ program? If so, help me out?

0 Answers  


Which is the only operator in C++ which can be overloaded but NOT inherited?

8 Answers  


what is the difference between class and structure in C++?

9 Answers   Aspire, IBS, TCS,


There are 2 empty jars of 5 and 3 liters capacity. And a river is flowing besides. I want to measure 4 liters of wanter using these 2 jars. How do you do this?

4 Answers  


how does a main() in C++ is different from main() in C?

7 Answers  


c++ program to swap the objects of two different classes

0 Answers  


Why is object oriented programming so hard?

0 Answers  


How many types of access specifier in c# and vb.net?

1 Answers   Infosys,


What is the real time example of encapsulation?

0 Answers  


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

4 Answers  


Categories