Skip to content

Instantly share code, notes, and snippets.

@raulmontemayor
Last active August 29, 2015 14:18
Show Gist options
  • Save raulmontemayor/7396d5b09fefde389b24 to your computer and use it in GitHub Desktop.
Save raulmontemayor/7396d5b09fefde389b24 to your computer and use it in GitHub Desktop.
package parte2;
import java.util.Date;
public class Amigo {
private String nombre;
private Date fechaNacimiento;
public Amigo(String nombre, Date fechaNacimiento) {
this.nombre = nombre;
this.fechaNacimiento = fechaNacimiento;
}
public String getNombre() {
return nombre;
}
public void setNombre(String nombre) {
this.nombre = nombre;
}
public Date getFechaNacimiento() {
return fechaNacimiento;
}
public void setFechaNacimiento(Date fechaNacimiento) {
this.fechaNacimiento = fechaNacimiento;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment