Created
May 14, 2013 19:21
-
-
Save IsaacGonzalez/5578684 to your computer and use it in GitHub Desktop.
Constructores para la clase Domicilio - Becas
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public Domicilio(int domicilio_id, String calle, String entre, int numero_exterior, | |
int numero_interior, String colonia, String telefono, String localidad, | |
String municipio, String estado, String pais, int codigo_postal, Boolean recibe_correo) | |
{ | |
this.domicilio_id = domicilio_id; | |
this.calle = calle; | |
this.entre = entre; | |
this.numero_exterior = numero_exterior; | |
this.numero_interior = numero_interior; | |
this.colonia = colonia; | |
this.telefono = telefono; | |
this.localidad = localidad; | |
this.municipio = municipio; | |
this.estado = estado; | |
this.pais = pais; | |
this.codigo_postal = codigo_postal; | |
this.recibe_correo = recibe_correo; | |
} | |
// recibe el atributo pertenece_id para cuando es el domicilio de un estudiante foraneo | |
public Domicilio(int domicilio_id, String calle, String entre, int numero_exterior, | |
int numero_interior, String colonia, String telefono, String localidad, | |
String municipio, String estado, String pais, int codigo_postal, Boolean recibe_correo, | |
int pertenece_id) | |
{ | |
this.domicilio_id = domicilio_id; | |
this.calle = calle; | |
this.entre = entre; | |
this.numero_exterior = numero_exterior; | |
this.numero_interior = numero_interior; | |
this.colonia = colonia; | |
this.telefono = telefono; | |
this.localidad = localidad; | |
this.municipio = municipio; | |
this.estado = estado; | |
this.pais = pais; | |
this.codigo_postal = codigo_postal; | |
this.recibe_correo = recibe_correo; | |
this.pertenece_id = pertenece_id; | |
} | |
public Domicilio(String calle, int numeroExterior, String colonia, int codigoPostal, | |
String telefono) | |
{ | |
this.calle = calle; | |
this.numero_exterior = numeroExterior; | |
this.colonia = colonia; | |
this.codigo_postal = codigoPostal; | |
this.telefono = telefono; | |
} | |
public Domicilio(String calle, int numeroExterior, String colonia, int codigoPostal) | |
{ | |
this.calle = calle; | |
this.numero_exterior = numeroExterior; | |
this.colonia = colonia; | |
this.codigo_postal = codigoPostal; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment