About multi level and multiple inheritance how to achieve in
.net ?

Answer Posted / senthil kumar

.net supports directly to the multi level
inheritance.but .net doesnot support the multiple
inheritance directly instead of that we use interface used.

for example,multilevel inheritance

class a
{
-----
-----
-----
}

class b : a
{
-----
-----
-----
}

class c : b
{
----
----
----
}

multiple inheritance - interface
--------------------------------
interface a
{
-----
-----
-----
}

Is This Answer Correct ?    12 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is data binding with example?

498


Why is c# good for games?

525


What is the use of nullable types in c#?

487


How many parameters can a method have c#?

486


Explain partial class in c#?

497






How to Install uninstall assemblies into GAC?

506


Explain what is an interface in c#?

521


Is string passed by reference in c#?

492


List the differences between method overriding and method overloading?

490


What is an array class?

522


What is a static property. Give an example?

522


Is linkedhashset synchronized?

572


Explain the difference between event and a delegate in c#?

534


What are primitive data types in c#?

523


Is and as in c#?

512