在Java中这样报错The method SayHi() is undefined for the type AccpTeacher是什么意思?

来源:学生作业学帮网 编辑:学帮网 时间:2024/05/17 07:43:49

在Java中这样报错The method SayHi() is undefined for the type AccpTeacher是什么意思?

这种问题,肯定编译都通不过.
这个方法没有在AccpTeacher这个类中定义.
你看看:
1:有没有引用对类
2:是不是方法名敲错了
都check一下哈.