Subscribe

RSS Feed (xml)

Powered By

Skin Design:
Free Blogger Skins

Powered by Blogger

Search Your Question

Monday, May 5, 2008

Is it possible to use multipe inheritance in C# / VB.Net?

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.

No comments:

Archives