标签: templates methods setter final getter
我正在使用设计模式“模板方法”,并且想知道是否可以在不可能的情况下自动使用关键字final,或者仅在绝对必要时才使用final。例如,模板抽象类中的setter和getter应该是最终的还是太多?