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 delegate in c#?

965


What is a lambda expression in c#?

1544


how to prevent a class from being inherited in c#.net?

999


What is CASPOL?

1046


Describe two uses of the “using” statement during the operation of c#?

969


What is difference between assembly and namespace?

946


What is the difference between finalize() and dispose()?

939


What does addressof operator do in background ?

1019


What is the and operator in c#?

989


What is the diff between System.String and System.Text.StringBuilder classes?

1020


Is string a data type in c#?

860


What is the difference between C# 3.5 and C# 4.0?

956


Can u list some style properties of List Box?

935


How can I process command-line arguments?

985


Which compiler switch creates an xml file from xml comments in the files in an assembly?

1019