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

How many types of namespaces available in version4?

950


When was .net linq added?

956


In .Net, what is an assembly? Also explain the type of assembly.

912


What is object type in c#?

964


What is sqlcommand in c#?

897


What's the implicit name of the parameter that gets passed into the set method/property of a class?

997


What is the difference between a variable and a literal?

1051


What are the advantages of interface in c#?

954


What is dataadapter c#?

891


What is meant by console programming?

920


How can encapsulation be achieved?

1112


What is a satellite assembly in c#?

999


Explain the difference between .net and c#?

934


What is string [] args in c#?

955


What are namespaces, and how they are used?

1007