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 / saurabh

Suppose, you have class A, which implements a method Show().
This class is now Inherited by Class B and Class C.
Now both B,C will have Show available to them or may be they
have overridden the functionality of Show() defined by Class
A. So far this is fine.

Now If I have Class D inheriting from Class B and Class C.
Which Show() method will class D be using? How many
implementations of Show will be available there for class D?
This is the problem.

Is This Answer Correct ?    55 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is c sharp used for?

907


What is the major difference between a custom control and user control?

1059


What is autopostback in c#?

960


Can you pass parameters to destructors?

1053


What is difference between an reference type and value type in C#?

1060


How does insertion sort work?

930


What does string format do?

893


What is console readkey in vb net?

1085


What is data set in c#?

937


Explain the difference between proc. Sent by val and by sub?

930


What is difference between assembly and namespace?

937


How many constructors can a class have c#?

914


What is .cshtml file?

978


Can we override interface methods in c#?

870


What does question mark mean in c#?

993