Abstract method with variable list of arguments

前端 未结 5 1355
轮回少年
轮回少年 2021-02-05 07:09

I haven\'t quite found an elegant way to solve this issue. I have an abstract class that several other classes are inheriting with an abstract method that can contain anywhere f

5条回答
  •  失恋的感觉
    2021-02-05 07:36

    Yes, we can provide parameters to abstract method but it is must to provide same type of parameters to the implemented methods we wrote in the derived classes.

提交回复
热议问题