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

What is session and cookies in c#?

1012


What is monitor in C#?

1060


Why do we use stringbuilder in c#?

971


What is an example of delegation?

981


What is the process of Serialization?

1037


What are variables in c#?

1006


What is a must for multitasking

1055


Explain the types of assemblies in .net?

1006


What is the default value of date?

992


Can we have static indexer in c#?

948


What is the difference between virtual and override in c#?

1132


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

1110


How can I develop an application that automatically updates itself from the web?

951


What is as keyword in c#?

1040


What are extender provider components? Explain how to use an extender provider in the project.

944