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

Why do we parse in c#?

0 Answers  


Explain the difference between .net and c#?

0 Answers  


Can we have multiple constructors in a class c#?

0 Answers  


What is asp net c# corner?

0 Answers  


What is meant by generics in c#?

0 Answers  






What?s the difference between the System.Array.CopyTo() and System.Array.Clone()?

3 Answers  


What is xaml in c#?

0 Answers  


what is a template?

3 Answers   Choice Solutions,


What is the state of Garbage Collection after dispose() call info C# code?

4 Answers  


How more than one version of an assembly can keep in same place?

0 Answers  


What?s an interface class?

1 Answers  


What is gac? What are the steps to create an assembly and add it to the gac?

0 Answers  


Categories