The method talk01() is undefined for the type Object
程序还没写完,这只是其中的一个类,报错的地方我已在下面标记了talk1是本类的一个实例,已经在main函数中实例化过了
报错的提示是“The method talk01() is undefined for the type
Object”
package com.library.domain;
public class Talk {
public void talk01(int a){
switch(a){
case 1:
break;
case 2:
default:
System.out.println("该选项不存在");
}
}
public void passsucc(){
System.out.println("登陆成功!");
}
public void passfail(){
System.out.println("登录失败!");
System.out.println("跳转回登录页面.....");
super.talk01(); 就是这里报错,提示内容是“The method talk01() is undefined for the type Object”
}
public void pass03(){
}
public void Talk02(int a){
switch(a){
case 1:
break;
case 2:
break;
case 3:
break;
case 4:
break;
case 5:
break;
case 6:
break;
default:
System.out.println("该选项不存在");
}
}
public void Talk03(){
}
public void Talk04(){
}
public void Talk05(){
}
public void Talk06(){
}
}