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

Please explain value types and reference types used in c#?

865


what is the difference between convert.tostring() and tostring() functions ?

1051


write a program to find the biggest palindrome in the given string

963


Why do we need abstraction in c#?

923


Where value types are stored in c#?

933


What is the difference between the debug class and trace class? Documentation looks the same.

1158


Explain the difference between event and a delegate in c#?

964


Why static constructor is parameterless in c#?

1040


What is difference between a type and class?

1167


What is difference between list and dictionary in c#?

877


What is parse method in c#?

909


What is the property of a class in c#?

880


How do I enforce const correctness in c#?

935


What is the use of table aliases?

911


When should I throw an exception?

1001