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

Why multiple inheritance is not possible in c#

Answer Posted / gp_bellamkonda

When we use the Multiple inherutance,we use more than one
class.Suppose class A and class B are base classes and
class c is is multiple inherting it.it may be possible that
this function with same name and same signature can present
in both class A and Class B .At this time how the compiler
will know which function it should take wherether from
class A or class B.
So Multiple inheritance won't work.
To avoid this problem we use Interface..... it means in
interface we just declare a function and in the derived
class we give the definition as per the requirement...means
function should be abstract ... and in interface all funcion
[method] should abstract

Is This Answer Correct ?    36 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you declare struct members as protected?

902


What is thread in c#?

960


What is hashset c#?

1001


Why do we use reflection in c#?

950


What is the difference between int and int in c#?

1033


What is value c#?

839


Explain About DTS package

979


Enlist some of the properties of a thread class?

931


What is the difference between interface and inheritance in c#?

908


What is the difference between public, static, and void?

920


What are the 3 elements of delegation?

974


What are satellite assemblies?

977


What are cshtml files?

903


List the two important objects of ado.net and also list the namespaces that are commonly used in ado.net to aid in connection to a database.

910


Are arrays immutable c#?

1060