Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
每当我在 Eclipse IDE 上创建一个类并选择从超类继承构造函数时,继承的构造函数会导致出现错误,显示为
'The constructor Car(String, String, int) is undefined'.
'The constructor Car(String, String, int) is undefined'
我无法弄清楚为什么会这样,也不知道这是我遗漏的简单事情还是与 ide 的设置有关?我附上了两张截图。这些在子类的第 25 行显示错误。希望这是有道理的!