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

If you define a user defined data type by using the struct keyword, is it a value type or reference type?

590


What is a thread? What is multithreading?

598


My switch statement works differently! Why?

584


HOW to Develope the CRUD(create,read,update,delete) FORM IN WINDOWS form by using c# only

619


Which function is the entry point for a DLL in MS Windows 3.1?

772






Can we create extension method for interface?

567


What is the difference between delegates and events in c#?

511


Explain the various types of classes used in c#?

606


Explain the difference between “system.array.clone()” and “system.array.copyto()” in c#?

594


What is an array of arrays called?

511


What is disconnected data architecture in c#?

570


Which are the access modifiers available in c#?

604


Is c# front end or back end?

581


What are the three types of operators?

557


What are the advantages of clr procedure over t-sql procedure?

680