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

Why do we need delegates in c#?

929


What is file extension of webservices?

1014


What's the difference between system.string and system.text.stringbuilder classes?

994


What is difference between for and foreach in c#?

924


What is boolean method?

920


What are strongly typed objects?

890


What is function c#?

855


Can a class or a struct have multiple constructors?

923


Why do we use readonly in c#?

883


What is hashtable in c# with example?

914


What is assembly version series sequence?

962


Is friend a constructor?

879


If you define a user defined data type by using the class keyword, is it a value type or reference type?

846


What is the difference between “dispose” and “finalize” variables in c#?

966


What is difference between ienumerable and ienumerator in c#?

886