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
What are delegates?
Can you instantiate an abstract class c#?
What is static void main in c#?
Why do we need dependency injection in c#?
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?
What is console used for?
What do you mean by abstract class in c#?
What is ado net in c#?
Define multicast c# delegate?
What are the fundamental oop concepts?
Is c# code is unmanaged or managed code?
What is null in database?
how to print invert pyramid in c#
What are types in c#?
How is a loop recorder monitored?