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
If you define a user defined data type by using the struct keyword, is it a value type or reference type?
What is a thread? What is multithreading?
My switch statement works differently! Why?
HOW to Develope the CRUD(create,read,update,delete) FORM IN WINDOWS form by using c# only
Which function is the entry point for a DLL in MS Windows 3.1?
Can we create extension method for interface?
What is the difference between delegates and events in c#?
Explain the various types of classes used in c#?
Explain the difference between “system.array.clone()” and “system.array.copyto()” in c#?
What is an array of arrays called?
What is disconnected data architecture in c#?
Which are the access modifiers available in c#?
Is c# front end or back end?
What are the three types of operators?
What are the advantages of clr procedure over t-sql procedure?