How do you implement multiple inheritance in .NET?

Answer Posted / mahesh kotekar

The actual answer is. We cannot provide multiple
inheritance in C#. Multiple inheritance means having a
common implementation from two base class derived in the
child class which is not possible. Using interface we just
provide the prototype which we can implement in the derived
classing which provides a mimic of multiple inheritance. If
am wrong please let me know.
Thanks And Regards
Mahesh Kotekar

Is This Answer Correct ?    13 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a function c#?

595


Which of the following API is used to hide a window?

627


What is yield break in c#?

601


What are data types examples?

571


What Is The Difference Between The System.array.copyto() And System.array.clone()?

622






What is iformatprovider in c#?

580


What is anonymous types in c#?

587


Is multiple inheritance possible in c#?

647


How is a loop recorder monitored?

601


What is an object pool in .net?

736


How does aspect oriented programming work?

599


Can int be null in c#?

577


If dll and exe files are same it means you can deploy both the files in gac?

595


What is the function of the not null constraint?

578


Describe an interface class?

664