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 dbml file in c#?
Which is the best way for keeping the data in XML or SQL server..and why?
Constructor to an arbitrary base constructor?
What is event and delegates in c#?
What are types in c#?
Can we inherit private members of class in c#?
What are the commonly used i/o classes?
What is tpl in c#?
Can abstract class be sealed in c#?
Can abstract class be sealed?
What are circular references?
How to implement a singleton design pattern in c#?