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 |
Why do we need serialization?
How to create multi-dimensional array?
Can an Assembly have multiple versions
Explain the difference between access specifier and access modifier in c#?
what is IFormatable
What is the difference between System.String and System.StringBuilder classes?
What is marshalling in c#?
What is ilist c#?
Can list contain duplicates c#?
What is bitwise operator in c#?
What is the difference between const and readonly in c#.net?
if we are updating a database using thread, and mean while application crashes or thread being aborted then what will happen in Database? Rollback or Database will be updated? Please explain with different scenario.