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...

is c#.net supports multiple inheritance?

Answer Posted / jagan

hai friends,
we can achieve this multiple inheritence through
interfaces..
ex:interface I1
{
void add();

}
interface I2
{
void add();
}

class sample:I1,I2
{
I1.add()
{
console.write("this is add method");
}
I2.add()
{
console.write("this is del method");
}
}

//main()
{
I1 i1=new sample();
i1.add();
I2 i2=new sample();
i2.add();
}
}

here we can achieve multiple inheritence and we can avoid
the naming conficts..hope it will be usefull ........

Is This Answer Correct ?    24 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how to redirect tracing to a file?

1051


Elements of CAS

2236


Conceptually, what is the difference between early-binding and late-binding?

1145


What is the transport protocol you use to call a seb service soap?

1038


What is gac in .net?

1101


What is a variable of implicit type and what is its scope?

979


What is immutability?

1074


What is typical about a windows process in regards to memory allocation in .net?

1082


What does jit compilation do in .net?

1104


Is Driver Script any how related to AOM?

1243


Do you know the difference between the stack and the heap?

1049


Is .net core free?

1144


What is the difference between .net and laravel?

1072


How to prepare parametrized (with more than one parameters) crystal report. Please tell me the code procedure, if any body can?

1015


Explain About GDI object ?

1133