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 |
When compiler adds a default constructor to a class?
How does substring work in c#?
Why are there five tracing levels in System.Diagnostics.TraceSwitcher?
Can we inherit abstract class in c#?
What is the difference between int.Parse() and Convert.toInt32().
Are c# strings null terminated?
What are "class access modifiers" in C#?
What is the function of the not null constraint?
How to find methods of a assembly file (not using ILDASM)?
What does f mean in c#?
Can you instantiate an abstract class c#?
While debugging a C# application can you change the value of a variable?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)