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
Why use a singleton instead of static methods?
What are floating point numbers?
Why extension method is static?
Is c# used for any core features of windows vista?
Why is c# better than java?
What are strings in c#?
What is cshtml extension?
What is namespace in oops?
What is encapsulation in csharp?
Is datetime nullable c#?
What is the difference between and xml documentation tag?
Explain manifest & metadata in c#.
What is mvc in c#?
What is a event in c#?
Can we extend sealed class in c#?