How do you implement multiple inheritance in .NET?
Answer Posted / 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 |
Post New Answer View All Answers
What are the types of parameters in c#?
What is jit (just in time)?
What is asp net in c#?
Can a class have multiple constructors c#?
Explain concurrency with aop?
What is the purpose of a namespace?
Why generics are used in c#?
What is a .exe extension files? How is it similar to .dll extension files?
Explain the difference between abstract class and interface.
What is clr in c#?
Assembly Code. in Rejester AL. How do Contast Replece( or Change): Bit D3 With Bit D4 and Bit D2 With Bit D5 and Bit D1 With Bit D6 and Bit D0 With Bit D7 I am Not Know Very Well Write English.
What are delegates?
how to compare numbers and dispaly the largest ? *first thing I wanted to do is to input how many numbers to be compared *and then analyzed the largest then display it.
hi, is compulsory .net knowledge need for biztalk server training. if need, how far?.tell me some info abt real time instructors in hyd or other?
Can you mark static constructor with access modifiers?