开发者

why is multi-level, multiple inheritance removed in asp.net [duplicate]

开发者 https://www.devze.com 2023-04-12 13:12 出处:网络
This question already has answers here: Closed 11 years ago. Possible Duplicate: Why is Multiple Inheritance not allowed in Java or C#?
This question already has answers here: Closed 11 years ago.

Possible Duplicate:

Why is Multiple Inheritance not allowed in Java or C#?

Can anyone explain why ca开发者_StackOverflownnot we use multiple inheritance, multi-level inheritance, hybrid inheritance in asp.net C#, but Framework was built with reference to OOPS concept available in C++, C++ has multiple, multi-level, hybrid inheritance.

We can find the examples in many books of C++, i want know what exactly made us to avoid such types of inheritance, and due to this we started using, Interfaces, Shadowing, etc concepts in C#.

Any single detail will help me to research on this topic,

Thanks


C# obviously supports multi-level inheritance though it doesn't support Multiple Implementation Inheritance directly but they do support Multiple Interface Inheritance. For further clarification look at this link. I hope this will clear your doubts. Cheers !!!

0

精彩评论

暂无评论...
验证码 换一张
取 消