初学JAVA,哪位高手帮我看看错在哪?麻烦写详细点,谢谢了。
interface Speak{ public void speaking();
}
abstract class people
{
abstract void speaking();
}
class student extends people implements Speak
{string name;
public void student(string name)
{this.name=name;}
public void speaking()
{System.out.println("我是");}
}
public class A{
public static void main(String args[ ])
{ people p;
p=new student("张三");
p.speaking();}
}