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 the base class in .net from which all the classes are derived from?
What are classes in c#?
What is c# used for in the industry?
How will you allow a class to be inherited, but prevent the method from being over-ridden?
What are the valid parameter types we can pass in an Indexer ?
WHAT IS THE EXACT USE OF INTERFACE(DONT TELL USE FOR MULTIPLE INHERITANCE)
What is the main purpose of linq?
Explain the process of polymorphism with an example?
What is the benefit of interface in c#?
What is the difference between method and function in c#?
hi In my database i put id column as identity(the database is incremented by it self only)what i want is if i enter a data in my website, id will come automatically can u pl z tell me the code thax in advance
What is windows form in c#?