本帖最后由 langmb 于 2015-3-16 00:13 编辑
大家帮忙看下代码有没有错误,为啥在Myeclipse里面运行不出来,并且在dos里面也不行,编译是说是找不到原文件,
急急急
public class ExtendsDemo_2 {
public static void main(){
NewPhone p=new NewPhone();
p.show();
}
}
class Phone
{
void call(){}
void show()
{
System.out.println("number:");
}
}
class NewPhone extends Phone
{
void show()
{
System.out.println("name:");
System.out.println("picture:");
System.out.println("number:");
}
} |
|