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 struct in C#?

1039


What is the use of 0 in c#?

1085


Can I call a virtual method from a constructor/destructor?

942


What do you mean by jagged array?

963


Can we inherit singleton class in c#?

933


what optimizations does the c# compiler perform when you use the /optimize+ compiler option?

1112


What is the difference between values and reference types?

1054


what is .NET framework architecture ??

2059


What is the difference between a constant and a static readonly field?

1052


How is method overriding different from overloading?

1100


What is a statement c#?

1063


Explain the difference between access specifier and access modifier in c#?

1037


In how many ways you can overload a method?

1108


What is difference between code access and role based security?

1158


How can I produce an assembly?

1084