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 / shrikant narayanrao khode

Reason :
Every class inherit ToString() method.

class A ---> ToString()

class B ---> ToString()
-----------------------------
class C :A,B

Toatl ToString() method will be ----> 2
It is going to raise ambiguity problem.
Thats why Multiple inheretance is not possibe.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is php better than c#?

909


What is the use of functional interface?

900


What is constants in c#?

882


What is the main method in c#?

1051


What is an int in c#?

897


What is the relation between classes and objects?

934


Why do we Need of static class in c#?

1047


What is the adv of using System.Text.StringBuilder over System.String?

954


Why do I get a security exception when I try to run my c# app?

990


How is the syntax written to inherit from a class in C#?Give an example ?

1049


How to properly clean up excel interop objects?

915


How to block a class from being inherited further?

895


What is using keyword in C#?

1017


Explain how is the dll hell problem solved in .net?

847


How to find out that the code is written as managed or un-managed code?

1080