System.Object being the base class

后端 未结 8 1006
北荒
北荒 2020-12-03 15:47

This question may be usual for many, i tried for an hour to understand the things but getting no proper explanation.

MSDN says, System.Object is the ultimate

8条回答
  •  粉色の甜心
    2020-12-03 16:17

    Multiple inheritance means inheriting from multiple classes into one class. Your example is valid, but you wouldn't be able to do the following:

    Class B : A,C { --- }

    A definition for multiple inheritance:

    "Multiple inheritance is a feature of some object-oriented computer programming languages in which a class can inherit behaviors and features from more than one superclass."

提交回复
热议问题