帮我看看为什么会报错呢
package org.lxh.info.vo;
import java.util.Date;
public class Peron {
private int pid;
private String name;
private int age;
private Date birthday;
private String address;
public Peron(){
super();
}
public Person(int pid,String name,int age,Date birthday,String address){
this.pid = pid;
this.name = name;
this.age = age;
this.birthday = birthday;
this.address = address;
}
public int getPid() {
return pid;
}
public void setPid(int pid) {
this.pid = pid;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getAge() {
return age;
}
public void setAge(int age) {
this.age = age;
}
public Date getBirthday() {
return birthday;
}
public void setBirthday(Date birthday) {
this.birthday = birthday;
}
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
}
红线部分报错,原因是Return type for the method is missing 怎么解决啊 我想写向构造方法内传入参数