Why not override instead of using abstract class?

前端 未结 6 1915
北恋
北恋 2021-01-13 19:11

This might be a simple question for many but has confused me. I am picking an example from Kathy Sierra that shows the utility of Abstract Classes but I am unable to underst

6条回答
  •  执笔经年
    2021-01-13 19:38

    abstraction is great when the original programmer/architect want's to allow customized behavior to some base class and ensure that the consuming programmer implements the required methods.

提交回复
热议问题