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

What are delegates?

798


Can you instantiate an abstract class c#?

507


What is static void main in c#?

506


Why do we need dependency injection in c#?

463


State whether it is true to test a Web service you must create a windows application or Web application to consume this service or not?

485






What is console used for?

523


What do you mean by abstract class in c#?

503


What is ado net in c#?

507


Define multicast c# delegate?

560


What are the fundamental oop concepts?

530


Is c# code is unmanaged or managed code?

521


What is null in database?

466


how to print invert pyramid in c#

1313


What are types in c#?

497


How is a loop recorder monitored?

507