What is the use of 'abstract override' in C#?

前端 未结 7 979
梦如初夏
梦如初夏 2020-11-27 17:44

Just out of curiosity I tried overriding a abstract method in base class, and method the implementation abstract. As below:

public abstract class FirstAbstra         


        
7条回答
  •  鱼传尺愫
    2020-11-27 18:24

    This is done because in child class you can not have abstract method with same name as in base class. override tells compiler that you are overriding the behavior of base class.

    Hope this is what you are looking for.

提交回复
热议问题