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

2. What happened when BO object has been called?

1753


What is delegates in c# and uses of delegates?

643


How do you prevent a class from being inherited?

708


Can multiple inheritance implemented in c# ?

696


What is the symbol used for in c#?

683


Can you see a loop recorder?

653


Explain partial class in c#?

677


How to properly clean up excel interop objects?

690


Can we have two main methods in c#?

711


What are the 4 pillars of any object oriented programming language?

645


What is the namespace for the thread class?

708


Are value types sealed?

716


What is multiple interface in c#?

714


What is the major difference between a custom control and user control?

766


Compare and contrast between the System.Array.CopyTo() and Clone()?

753