if (o instanceof Tiger) return "老虎";
if (o instanceof Lion) return "狮子";
if (o instanceof Bull) return "公牛";
if (o instanceof Cow) return "奶牛";
if (o instanceof Cat) return "猫";
if (o instanceof Animal) return "动物";
为什么 把猫的位置调换一下 就可以了
这是因为什么原因
求大佬救救迷茫的我
正在讨论
评论 (1)
- 受欢迎
- 新
- 旧
你必须先登录才能发表评论
Gellert Varga
19 二月 2022, 10:02
Please publish the full programme.
Please use the "attach my solution" function on the bottom left when you are publishing your question on the help section.
Please be more specific about what you want to ask, because unfortunately I don't understand exactly.
0