How to force overriding a method in a descendant, without having an abstract base class?

前端 未结 14 976
孤城傲影
孤城傲影 2020-12-09 07:24

Question Heading seems to be little confusing, But I will Try to clear my question here.

using System;
using System.Collections.Generic;
usi         


        
14条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-09 07:54

    You can't using the setup you described. PTSalesPerson will already have an implementation of GiveBonus because it inherits from SalesPerson.

提交回复
热议问题