Is having an empty base class bad design?

后端 未结 4 823
耶瑟儿~
耶瑟儿~ 2021-01-12 10:24

I need a base class for my DTO classes which will be used in my generic interfaces.

But the DTO classes have nothing in common. They are just dumb classes containing

4条回答
  •  北恋
    北恋 (楼主)
    2021-01-12 11:10

    In java this is called a Tag Interface. The link provides some good background on tag interfaces, their uses and issues.

提交回复
热议问题