Is it possible to use multipe inheritance in .net

Answer Posted / kirti

Multiple Inheritance is an ability to inherit from more than one base class i.e. ability of a class to have more than one superclass, by inheriting from different sources and thus combine separately-defined behaviors in a single class. There are two types of multiple inheritance: multiple type/interface inheritance and multiple implementation inheritance. C# & VB.NET supports only multiple type/interface inheritance, i.e.

you can derive an class/interface from multiple interfaces. There is no support for multiple implementation inheritance in .NET. That means a class can only derived from one class.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does a viewmodel do?

758


What is entity client data provider? : Entity framework

783


What is difference between razor and web form engine?

794


Why to use '{resource}.axd/{*pathInfo}' in routing in ASP.Net MVC?

2379


What is the difference between model view and controller?

696


What is clr? How does work clr & wht is work of clr?

819


What is objectcontext? : Entity framework

863


Can we add constraints to the route? If yes, explain how we can do it?

1000


Can you explain model, controller and view in mvc?

776


What operating systems will the .net framework 3.0 be available for?

817


What is entitytypes? : Entity framework

809


What is the difference between .net core and .net framework?

753


What is a model in android?

704


What is the need of Action Filters in ASP.Net MVC

826


What are the 3 main components of an asp.net mvc application?

782