adspace


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

How do you inherit a class into other class in c#?

999


What is an abstract class c#?

973


Why can't we use a static class instead of singleton?

962


Which namespaces are necessary to create a localized application?

1147


How to assign Null value to Var?

1070


What is expression tree in c#?

1004