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 |
Why do I get a "cs5001: does not have an entry point defined" error when compiling?
What are the two kinds of properties?
What do you mean by shared assembly?
What is master page in asp net c#?
What is the Difference between read only and constant variables?
In which situation(s), the use of "Delegate" is a good idea?
How does return work in c#?
How can you sort the elements of the array in descending order?
What is dependency injection?
Explain hash table in c# ?
What is the use of delegates in c#?
Is visual c# free?
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)