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 a enumeration in c#

0 Answers   Cognizant,


What issues can be faced while delivering code?

0 Answers   TCS,


Explain polymorphism in c# with a simple example?

0 Answers  


What are the 2 broad classifications of data types available in c#?

0 Answers  


what is the difference between passing a value object by reference and a reference object by value?

4 Answers   TCS,






Explain lock, monitors, and mutex object in threading.

0 Answers  


What is firstordefault c#?

0 Answers  


What are the 4 pillars of any object oriented programming language?

0 Answers  


What is the use of iqueryable in c#?

0 Answers  


What is c# in asp net?

0 Answers  


What is method in c#?

0 Answers  


What is difference between hashtable and dictionary in c#?

0 Answers  


Categories