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


Difference between multi-level and multiple inheritance?

Answers were Sorted based on User's Feedback



Difference between multi-level and multiple inheritance?..

Answer / muhammad asim

Multiple inheritance::::

Multiple inheritance refers to a feature in which a class can inherit
behaviors and features from more than one superclass. This contrasts
with single inheritance, where a class may inherit from only one
superclass.

Syntax:
Class derived: <access specifier> base_class_name1,
<access specifier> base_class_name2
____________________________________________________________

Multilevel Inheritance:::

When you define more than two levels of inheritance (in the form of a chain of
classes), it would be generally referred to as multi-level inheritance. In the
case of multi-level inheritance, all the members of all super classes would be
automatically available within the sub class.

Syntax:::

Class base_class_name1
{
// List of members
};
Class derived_base_name2 : <access specifier> base_class_name1
{
// List of members
};
Class derived : <access specifier> derived_base_name2
{
// List of members
Class A
Class B
Class C
• Base Class To Both classes B and C but it is
Direct Base Class to B and Indirect Base Class
To Class C.
• Direct Base Class To Class C and Derived
from Class A.
• Derived from Class B, But it also act as
An Indirect Derived Class of A

____________________________________________________________

Is This Answer Correct ?    1 Yes 0 No

Difference between multi-level and multiple inheritance?..

Answer / #imadude

Multiple inheritance.
- when a class is derived from two base classes.


Multilevel inheritance.
- When one derived class is working as the base class of another.


~peaceout~

Is This Answer Correct ?    1 Yes 0 No

Difference between multi-level and multiple inheritance?..

Answer / rizwan iqbal

In multiple inheritance there is a more than one parent class and one child class..
eg:
parent class

parent class

child class

Multilevel:
In Multilevel inheritance there is a more than one child classes and only one base class
eg:
base class

child class

child class.

Is This Answer Correct ?    0 Yes 0 No

Difference between multi-level and multiple inheritance?..

Answer / mahfuz hasan

MULTIPLE INHERITENCE:
INHERITENCE OF CHILD CLASS FROM FRIEND AND PARENT CLASSES
MULTILEVEL INHERITENCE:
INHERITENCE OF CHILD CLASS FROM PARENT CLASS WHERE PARENT
CLASS IS CHILD CLASS OF ANOTHER CLASS.

Is This Answer Correct ?    8 Yes 10 No

Difference between multi-level and multiple inheritance?..

Answer / abilash aravindan

Multiple inheritance:

In this , we can inherit more than one class..

Base Class
^
/ \
c1 c2

MultiLevel Inheritance:

In this, One class can inherit, one derived class and tat
derived class will be act as a base class for another
derived class...

c1(base class for c2)
|
(base class for c3)c2(derived class of c1)
|
c3(derived class of c2)

Hope now you can understand better..

Is This Answer Correct ?    29 Yes 38 No

Difference between multi-level and multiple inheritance?..

Answer / harish chandra sahu

Multiple Inheritance:In multiple inheritance there is only
one super(Base) class and can has many child class.And java
does not support multiple class.Practical Ex is one child
cannot has two mother.
A
^
/ \
b c

Multilevel Inheritance: There are one super class and many
subclasses, and the subclass must be a superclass if it can
inherited by the next subclass and so on.Java support it.
A
|
B
|
C
|
D

Is This Answer Correct ?    7 Yes 24 No

Difference between multi-level and multiple inheritance?..

Answer / karan

9

Is This Answer Correct ?    8 Yes 30 No

Post New Answer

More C Sharp Interview Questions

Can a class have static constructor?

0 Answers  


What is difference between abstraction and encapsulation in c#?

0 Answers  


What is Inheritance in C#?

1 Answers   B-Ways TecnoSoft,


Can you specify nested classes as partial classes?

0 Answers  


What?s the advantage of using System.Text.StringBuilder over System.String?

1 Answers  


what is collections and what is generics

4 Answers   Bally Technologies,


What is ienumerable t in c#?

0 Answers  


update data in an xml file which resides in solution itself, using silverlight 4.0

0 Answers  


What is dynamic object in c#?

0 Answers  


What are the 4 pillars of any object oriented programming language?

0 Answers  


What is array collection?

0 Answers  


What does out mean c#?

0 Answers  


Categories