Use of 'super' keyword when accessing non-overridden superclass methods

后端 未结 8 2029
梦如初夏
梦如初夏 2021-01-02 12:38

I\'m trying to get the hang of inheritance in Java and have learnt that when overriding methods (and hiding fields) in sub classes, they can still be accessed from the super

8条回答
  •  一生所求
    2021-01-02 13:03

    It is advised that further changes to the inherited class will not necessitate addition of the super qualifier and also prevent errors if missed.

提交回复
热议问题