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

来源:学生作业帮助网 编辑:六六作业网 时间:2024/07/13 16:23:57
在Java中这样报错ThemethodSayHi()isundefinedforthetypeAccpTeacher是什么意思?在Java中这样报错ThemethodSayHi()isundefine

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

在Java中这样报错The method SayHi() is undefined for the type AccpTeacher是什么意思?
这种问题,肯定编译都通不过.
这个方法没有在AccpTeacher这个类中定义.
你看看:
1:有没有引用对类
2:是不是方法名敲错了
都check一下哈.