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 |
Explain briefly the difference between value type and reference type?
What is tryparse c#?
What is string concatenation?
Which are the access modifiers available in c#?
What is querystring in c#?
Can a struct inherit from an interface in c#?
What are the principles of delegation?
Can a class have more than 1 destructor?
What?s the difference between the Debug class and Trace class?
What is the difference between // comments, /* */ comments and /// comments?
What is array collection?
Are c# generics the same as c++ templates?