在Java中这样报错The method SayHi() is undefined for the type AccpTeacher是什么意思?
来源:学生作业帮助网 编辑:作业帮 时间:2024/06/15 06:35:52
![在Java中这样报错The method SayHi() is undefined for the type AccpTeacher是什么意思?](/uploads/image/z/5274955-19-5.jpg?t=%E5%9C%A8Java%E4%B8%AD%E8%BF%99%E6%A0%B7%E6%8A%A5%E9%94%99The+method+SayHi%28%29+is+undefined+for+the+type+AccpTeacher%E6%98%AF%E4%BB%80%E4%B9%88%E6%84%8F%E6%80%9D%3F)
在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一下哈.