How do you implement multiple inheritance in .NET?
Answers were Sorted based on User's Feedback
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 |
Answer / mohamed ali
using of interface we do the multiple inheritance in .net
Is This Answer Correct ? | 3 Yes | 0 No |
What is multicast delegate in c# ?
Why data types are important in c#?
What is the advantage of constructor in c#?
How do you sort an array in c#?
What are generations and how are they used by the garbage collector?
What are the types of serialization?
How to transpose rows into columns and columns into rows in a multi-dimensional array?
Name the control which cannot be placed in mdi?
What is an object pool in .net?
What is signature c#?
What are satellite assemblies?
What is windows forms in c#?