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
Is c# an open source language?
What is static noise?
What is event delegate in c#?
Is a dll an assembly?
Can namespace contain the private class?
What is the difference between add and addrange in c#?
What is nullable types in c#?
how encapsulation is implemented in c#
What are sorted lists?
Different between method overriding and method overloading?
Can abstract class be sealed in c#?
What is the difference between finally and finalize block?
What is inline function in c#?
How jit (just in time) works?
What is string method in c#?