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 I create a single-file assembly?
What is threading in c# with example?
Describe an interface class?
What is the difference between dataset and datatable in c#?
What you mean by delegate in c#?
Can you specify nested classes as partial classes?
What is the usage of OLE?
What is the difference between var and dynamic types in c# 4.0?
Why do we use static class in c#?
Explain code compilation in c#.
Explain About Postback
Which is better interface or abstract class in c#?
What is a copy constructor in c#?
What is a string in c#?
Where do we use serialization in c#?