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...

How do you implement multiple inheritance in .NET?

Answer Posted / shadab

To implement multiple inheritance in .net we will have to
use Interface...

see the below program..

using System;
interface Ifirst
{
void display();
}
class use:Ifirst
{
public void display()
{
Console.WriteLine("This is a method");
}
public static void Main()
{
use u=new use();
u.display();
}

}

----------
for more help visit my blog
http://www.shadab-programminghelp.blogspot.com

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do destructors and garbage collection work in c#?

879


What are delegate methods?

897


How do you escape c#?

844


What is native image generator (ngen.exe)?

1176


What is lambda expression in c#?

904


Can a static class contain non static members?

930


Will the following code compile?

907


What I can do with c#?

892


What do you mean by winforms in c#?

898


If multiple interfaces are inherited and they have conflicting method names; What will happen ?

899


Difference between type constructor and instance constructor? What is static constructor, when it will be fired? And what is its use?

1003


How to install or uninstall a windows service?

972


What are the namespace level elements?

897


What is difference between struct and class in c#?

866


What is javascriptserializer c#?

934