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
What is session and cookies in c#?
What is monitor in C#?
Why do we use stringbuilder in c#?
What is an example of delegation?
What is the process of Serialization?
What are variables in c#?
What is a must for multitasking
Explain the types of assemblies in .net?
What is the default value of date?
Can we have static indexer in c#?
What is the difference between virtual and override in c#?
what optimizations does the c# compiler perform when you use the /optimize+ compiler option?
How can I develop an application that automatically updates itself from the web?
What is as keyword in c#?
What are extender provider components? Explain how to use an extender provider in the project.