User Id :    Password :      New Member   Forgot Password  
Topic: Why multiple inheritances is not allowed in csharp while it is allow in c++
Sachin Jain
12 Jan 2012 at 09:54 AM

Why multiple inheritances is not allowed in c# while it is allow in c++?

Re: Why multiple inheritances is not allowed in csharp while it is allow in c++
Gaurav
15 Jan 2012 at 10:30 AM

In OOP, multiple inheritances might become difficult to handle because it allows ambiguity for the compiler. There are programming languages such as C++ that allow multiple inheritances; however, other programming languages such as Java and the .NET Framework languages do not allow multiple inheritance. Multiple inheritance can be emulated in .NET using Multiple Interface Inheritance

Re: Why multiple inheritances is not allowed in csharp while it is allow in c++
Gaurav
15 Jan 2012 at 10:31 AM

In OOP, multiple inheritances might become difficult to handle because it allows ambiguity for the compiler. There are programming languages such as C++ that allow multiple inheritances; however, other programming languages such as Java and the .NET Framework languages do not allow multiple inheritance. Multiple inheritance can be emulated in .NET using Multiple Interface Inheritance

Total Replies: 2
 
Featured Text Ad

Featured Ad