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 |
Why do we parse in c#?
Explain the difference between .net and c#?
Can we have multiple constructors in a class c#?
What is asp net c# corner?
What is meant by generics in c#?
What?s the difference between the System.Array.CopyTo() and System.Array.Clone()?
What is xaml in c#?
what is a template?
What is the state of Garbage Collection after dispose() call info C# code?
How more than one version of an assembly can keep in same place?
What?s an interface class?
What is gac? What are the steps to create an assembly and add it to the gac?