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

Can we inherit private class in c#?

885


Why do we use class in c#?

874


what is the difference between a struct and a class in c#?

1080


Give examples for reference types?

934


What is COM Interoperability?

909


What is type keyword in c#?

873


What is the difference between yield and return?

827


Can a sealed class be used as a base class?

913


Why we use get set property in c#?

887


What is _layout cshtml?

813


If c# destructors are so different to c++ destructors, why did ms use the same syntax?

873


What is get set in c#?

915


What is difference between for and foreach loop in c#?

945


What is the use of static members with example using c#.net.

869


Explain namespaces in c#.

966