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 ?    12 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 a HashCode?

1 Answers  


How do I create a multilanguage, single-file assembly?

0 Answers  


Can c# inherit multiple classes?

0 Answers  


What is the difference between ref & out parameters in c#?

0 Answers  


What is #region in c#?

0 Answers  






Name the two classes are required for implementing a windows service?

0 Answers  


write a c# program add two matrix with input number ?

0 Answers   Wipro,


Can u create multiple threads of execution ?

1 Answers   ITC Infotech, IBM, UHU,


What is the advantage of constructor?

0 Answers  


What does mean c#?

0 Answers  


What is value type and reference type?

3 Answers   TCS,


What is xor operation?

0 Answers  






Categories