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 |
if a base class has a number of overloaded constructors, and an inheriting class has a number of overloaded constructors; can you enforce a call from an inherited constructor to a specific base constructor?
What is difference between sleep () and wait ()?
What is the difference between an integer and int?
Why data types are important?
what are advantages and disadvantages of Microsoft-provided data provider classes in ADO.NET?
what is ment by Unboxing?
What are types in c#?
What is marker interface?
Why do we need to override in c#?
In c#, what will happen if you do not explicitly provide a constructor for a class?
How?s method overriding different from overloading?
Why are dynamic link library used over static one?
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)