public class Test
{
Test(int x, int y)
{
}
}class b extends Test
{
}为什么提示
Test.java:11: cannot find symbol
symbol : constructor Test()
location: class Test
{
^
1 error在我印象里子类的构造器和父类的构造器应该没什么关系才对啊
{
Test(int x, int y)
{
}
}class b extends Test
{
}为什么提示
Test.java:11: cannot find symbol
symbol : constructor Test()
location: class Test
{
^
1 error在我印象里子类的构造器和父类的构造器应该没什么关系才对啊
public class Test {
Test(int x, int y) { }
}class b extends Test {
b() {
super(1, 1);
}
}或者:
public class Test {
Test(int x, int y) { }
Test() { }
}class b extends Test {
}都可以通过编译。
java工程师
java jsp servlet spring hibernate js css
上面会一部分既可qq 283765999
地点:北京