How to get rid of instanceof?

前端 未结 0 346
忘掉有多难
忘掉有多难 2020-12-08 04:14

I have been told that using instanceof like in the code below is bad practice as it becomes repetitive and makes extension hard. I\'m pretty new to Java though and don\'t se

相关标签:
回答
  • 消灭零回复
提交回复
热议问题