How do you implement multiple inheritance in .NET?

Answers were Sorted based on User's Feedback



How do you implement multiple inheritance in .NET?..

Answer / swapna

Using interfaces we can implement multiple inheritance
in .net.

Is This Answer Correct ?    13 Yes 0 No

How do you implement multiple inheritance in .NET?..

Answer / 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

How do you implement multiple inheritance in .NET?..

Answer / deep

USING INTERFACE

Is This Answer Correct ?    8 Yes 1 No

How do you implement multiple inheritance in .NET?..

Answer / kamlesh sharma

use of interfaces

Is This Answer Correct ?    6 Yes 1 No

How do you implement multiple inheritance in .NET?..

Answer / mohamed ali

using of interface we do the multiple inheritance in .net

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What is multicast delegate in c# ?

0 Answers  


Why data types are important in c#?

0 Answers  


What is the advantage of constructor in c#?

0 Answers  


How do you sort an array in c#?

0 Answers  


What are generations and how are they used by the garbage collector?

0 Answers  


What are the types of serialization?

0 Answers  


How to transpose rows into columns and columns into rows in a multi-dimensional array?

4 Answers   Microsoft,


Name the control which cannot be placed in mdi?

0 Answers  


What is an object pool in .net?

0 Answers  


What is signature c#?

0 Answers  


What are satellite assemblies?

0 Answers  


What is windows forms in c#?

0 Answers  


Categories