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 a enumeration in c#
What issues can be faced while delivering code?
Explain polymorphism in c# with a simple example?
What are the 2 broad classifications of data types available in c#?
what is the difference between passing a value object by reference and a reference object by value?
Explain lock, monitors, and mutex object in threading.
What is firstordefault c#?
What are the 4 pillars of any object oriented programming language?
What is the use of iqueryable in c#?
What is c# in asp net?
What is method in c#?
What is difference between hashtable and dictionary in c#?