public class nyoil {
public static void main(String[] args){
Students a=new Student();
a.chifan();
}
}
public interface fangfa{
void chifan();
void zhusu();
}
public class Students implements fangfa{
public void chifan(){
System.out.println("学生吃饭时间到");
}
public void zhusu(){
System.out.println("学生住宿时间到");
}
}
public class Teachers implements fangfa{
public void chifan(){
System.out.println("老师吃饭的时间");
}
public void zhusu(){
System.out.println("老师睡觉的时间");
}
}
eclipse上提示我fangfa、Student、Teacher都没有定义,我不太懂是什么意思,求解各位大神