uouo
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
package intro.persona;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
public class Persona {
|
||||
private String name;
|
||||
|
||||
public Persona(String name, Date dateOfBirth) {
|
||||
this.name = name;
|
||||
this.dateOfBirth = dateOfBirth;
|
||||
}
|
||||
|
||||
private Date dateOfBirth;
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public Date getDateOfBirth() {
|
||||
return dateOfBirth;
|
||||
}
|
||||
|
||||
public void setDateOfBirth(Date dateOfBirth) {
|
||||
this.dateOfBirth = dateOfBirth;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user