How to give more than one role for an object in java?

后端 未结 0 446
我在风中等你
我在风中等你 2020-12-05 07:29

the student and teacher class inherited from person class, because inheritance is not flexible the object will either be one of the two. to solve this i added an abstract cl

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