您的位置:首页 > 其它

sth about Inheritance

2006-03-14 16:31 309 查看
public class Test extends Test2
{
Test(String s) {
System.out.println(s);
}
public static void main(String[] args)
{
Test t=new Test("Test");
}
}

class Test2
{
Test2(String s) {
System.out.println(s);
}
}

The compiler will complain. In other words, it can not be compiled.

not know that before.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: