帮我看看这是什么错误啊
public class f
{
public static void main(String arg[])
{
System.out.println("g");
father h =new son();
h.g();
h.d();
}
}
class son extends father
{
void g()
{
System.out.println("gson");
}
}
class fahter
{
void d()
{
System.out.println("gFather");
}
}
Microsoft Windows XP [版本 5.1.2600]
(C) 版权所有 1985-2001 Microsoft Corp.
C:\Documents and Settings\mo>d:
D:\>dir *.java
驱动器 D 中的卷没有标签。
卷的序列号是 00E4-8819
D:\ 的目录
2005-11-26 21:13 338 f.java
2005-11-26 20:50 796 FatherSon.java
2 个文件 1,134 字节
0 个目录 2,802,694,656 可用字节
D:\>javac f.java
f.java:17: cannot resolve symbol
symbol : class father
location: class son
class son extends father
^
f.java:9: cannot resolve symbol
symbol : class father
location: class f
father h =new son();
^
2 errors
D:\>