Can I use a parameter to specify from which of my subclasses I want to open an instance of my parent class?

后端 未结 0 1272
长发绾君心
长发绾君心 2021-01-25 02:17

I have a parent class Bank.java which requires the name of the bank that I am trying to open and an int (account limit). I have two subclasses of Bank.java, one of which looks l

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