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
How do destructors and garbage collection work in c#?
What are delegate methods?
How do you escape c#?
What is native image generator (ngen.exe)?
What is lambda expression in c#?
Can a static class contain non static members?
Will the following code compile?
What I can do with c#?
What do you mean by winforms in c#?
If multiple interfaces are inherited and they have conflicting method names; What will happen ?
Difference between type constructor and instance constructor? What is static constructor, when it will be fired? And what is its use?
How to install or uninstall a windows service?
What are the namespace level elements?
What is difference between struct and class in c#?
What is javascriptserializer c#?