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 Inheritence is not used in C#?

Answer Posted / mayur teli

There is the classic diamond problem encountered in multiple inheritance, in which class D inherits from both B and C, which both inherit from A.

A
/ \
B C
\ /
D
So which copy of A does D get? The one from B, the one from C? Both? This way various languages resolve this problems is discussed here:

http://en.wikipedia.org/wiki/Diamond_problem

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is streamreader/streamwriter class?

896


Why objects are stored in heap in c#?

903


Is array a collection c#?

880


What is binary search tree in data structure?

854


Which sorting algorithm is best?

945


How can you access a private method of a class?

949


Can a string be null c#?

846


What is the use of properties window?

931


What is system console writeline in c#?

955


When do you generally use a class over a struct?

925


When can a derived class override a base class member?

856


What is class method c#?

856


Why do we need collections in c#?

834


What is managed code?

994


What is difference between ilist and list in c#?

932