The constructor Vehicle(String) is undefined

Exception in thread "main" java.lang.Error: Unresolved compilation problems:      The constructor Vehicle(String) is undefined

代码是跟着老师的步骤敲的,就是运行不出来,把问题复制出来查,还是找不出哪儿错了,就很难受。然后继续刷类似的问题解决方法,突然看到一行:可能是你原先的包里面在其他文件中有同名的类。我立刻就把eclipse中以前写的代码文件保留好备份就全删了,结果真就运行出来了。把孩子

激动坏了哈哈哈。。。

The constructor Vehicle(String) is undefined

 要感谢这里的友友啦啵啵!

上一篇:设计模式七大原则——单一职责原则


下一篇:软件设计-桥接模式