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 .net does not support multiple inheritance?

Answer Posted / satish kumar k

In object-oriented programming languages with multiple
inheritance and knowledge organization, the diamond problem
is an ambiguity that arises when two classes B and C inherit
from A, and class D inherits from both B and C. If a method
in D calls a method defined in A (and does not override the
method), and B and C have overridden that method
differently, then from which class does it inherit: B, or C?
For example, in the context of GUI software development, a
class Button may inherit from both classes Rectangle (for
appearance) and MouseEvent (for functionality), and classes
Rectangle and MouseEvent both inherit from the Object class.
Now if the equals method is called for a Button object and
there is no such method in the Button class but there is an
over-ridden equals method in both Rectangle and MouseEvent,
which method should be eventually called?

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How anonymous method is different from a lambda expression?

1071


What is STA in .NET?

1133


what are connection strings?

2302


What is RCW (Run time Callable Wrappers)?

2456


How do you instantiate a complex number?

1134


Write the .net syntax for 'for loop'?

1074


How to produce an assembly?

1167


Explain the difference between managed and unmanaged code?

971


How do we access crystal reports in .net?

1176


What is the advantage of .net?

1026


What is the microsoft .net?

1177


How viewstate is being formed and how it's stored on client in .net?

1044


Why inheritance is important?

1258


Explain what is the difference between response.redirect & server.transfer?

1132


Explain what is immutability, what is it for and how is it codified?

1162