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 thread.sleep()?
Explain how many types of exception handlers are there in .net?
What is void method?
What is data binding with example?
What can be done with c#?
Distinguish between a class and struct?
can we throw execption from catchblock
Which is better interface or abstract class in c#?
Is it possible to inherit multiple interfaces?
What is shared inheritance
from web.config file with connection string who to interact means who to connect in gridview. in my system shows null something error what is the problem
What is serialization and deserialization in c# with example?
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)