How to “properly” override a base class method?

前端 未结 4 1592
野性不改
野性不改 2020-12-25 10:59

Whenever i override a method of a base class, other than my implementation of this method, i seem to have 3 choices.

1) Call base.Method(), and then provide my imple

4条回答
  •  攒了一身酷
    2020-12-25 11:20

    The requirements of the base class should be documented by the library designer. This issue is the reason why some libraries contain mainly sealed classes.

提交回复
热议问题