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 is a virtual property. Give an example?

948


Which is faster abstract class or interface in c#?

989


Compare and contrast between the System.Array.CopyTo() and Clone()?

981


What is generic method in c#?

945


What is hashtable in c# with example?

961


Is multiple inheritance possible in c#?

1008


If you define a user defined data type by using the struct keyword, is it a value type or reference type?

883


What is the difference between “out” and “ref” parameters in c#?

997


What is the difference between array and arraylist c#?

1076


What is private constructor c#?

922


What is thread safe in c#?

892


What is difference between association, aggregation and inheritance relationships?

921


Explain About .NET Framework

913


What is executescalar in c#?

853


What is base class in c#?

1003