假如父类中有变量public String type
那么子类中获得其方法为:
public String getType() {
return super.getType();
}
public void setType(String type) {
super.setType(type);
}
假如父类中有变量public String type
那么子类中获得其方法为:
public String getType() {
return super.getType();
}
public void setType(String type) {
super.setType(type);
}