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

How to declares a two-dimensional array in C#?

787


Which constructor is called first in c#?

678


What is an interface class? Give one example of it

663


What is the use of parse in c#?

628


Can a struct inherit from another struct or class in c#?

688


What are extension methods and where can we use them?

642


How does bitwise xor work?

630


What is new method in c#?

683


How long can loop recorders stay in?

862


How would you describe encapsulation in c#?

669


What is the console on a mac?

665


How many bytes is an int c#?

663


What is the difference between returning iqueryable vs ienumerable?

670


When was c# created?

696


What is better C# or VB.NET?

671