How do you create multiple inheritance in C#?

Answer Posted / arunkumar.v

C# doesnt support multiple inheritence ie.,it doesnt
inherit multiple base class.It generally creates confusion.
Instead you can use Interfaces.You are permitted to inherit
one base class and multiple interfaces.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is class method?

470


What is the difference between do and while loop?

442


Give an example of removing an element from the queue?

465


How do I create a single-file assembly?

474


Do extension methods have to be static?

539






Is c# and .net same?

484


What is difference between value and reference types in C#.NET

509


Explain about Destructor method?

538


Explain the difference between a sub and a function in c#.

528


Are classes passed by reference in c#?

479


List some of the classes used by system.data namespace?

444


in object oriented programming, how would you describe encapsulation?

555


What is the difference between internal and protected in c#?

433


Define an array?

526


What method is used to sort the elements of the array in descending order?

566