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

Can you inherit multiple interfaces?

Answer Posted / vikas sv

Yes. Multiple interfaces may be inherited in C#.

Note that when a class and multiple interfaces are to be
inherited, then the class name should be written first,
followed by the names of the interfaces. See code example
below, on how to inherit multiple interfaces in C#.

C# Example
class someclass : parentclass, IInterface1, IInterface2
{
//...Some code in C#
}

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the types of assembly available

880


What is the difference between static class and singleton class in c#?

865


what is generics? can u explain 5 to 6 examples on generics that covers class,method,structure,list,delegates?

1881


Is a dll an assembly?

871


Does hashset allow duplicates c#?

915


What is icomparer in c#?

882


Is learning c# hard?

873


Can you declare struct members as protected?

852


Can we have multiple constructors in a class c#?

858


What is append in c#?

795


How do you prevent a class from being inherited?

864


In which situation(s), the use of "Delegate" is a good idea?

920


What is Custom attribute? How to create? If I'm having custom attribute in an assembly, how to say that name in the code?

883


what is partial assembly reference

894


What is an int c#?

806