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


Please Help Members By Posting Answers For Below Questions

Why use a singleton instead of static methods?

456


What are floating point numbers?

481


Why extension method is static?

462


Is c# used for any core features of windows vista?

511


Why is c# better than java?

495






What are strings in c#?

482


What is cshtml extension?

516


What is namespace in oops?

483


What is encapsulation in csharp?

508


Is datetime nullable c#?

496


What is the difference between and xml documentation tag?

514


Explain manifest & metadata in c#.

528


What is mvc in c#?

457


What is a event in c#?

456


Can we extend sealed class in c#?

484