Created
May 14, 2013 19:14
-
-
Save IsaacGonzalez/5578636 to your computer and use it in GitHub Desktop.
Constructores de la clase Empleo - 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
// Este se usa para la beca becalos o cuando el empleo nomas tiene el atributo direccion como string | |
// dentro del form | |
public Empleo(String nombre_empresa, String puesto, String direccion, String telefono, | |
String actividad, float ingreso_mensual) | |
{ | |
this.nombre_empresa = nombre_empresa; | |
this.puesto = puesto; | |
this.direccion = direccion; | |
this.telefono = telefono; | |
this.domicilio = null; | |
this.actividad = actividad; | |
this.ingreso_mensual = ingreso_mensual; | |
} | |
// Constructor para Alumno y Conyuge | |
public Empleo(String nombre_empresa, String puesto, String direccion, String telefono, | |
float ingreso_mensual) | |
{ | |
this.nombre_empresa = nombre_empresa; | |
this.puesto = puesto; | |
this.direccion = direccion; | |
this.telefono = telefono; | |
this.domicilio = null; | |
this.actividad = ""; | |
this.ingreso_mensual = ingreso_mensual; | |
} | |
//Constructor para papa, mama y aval | |
public Empleo(String nombre_empresa, String puesto, Domicilio domicilio, String telefono, | |
String actividad, float ingreso_mensual) | |
{ | |
this.nombre_empresa = nombre_empresa; | |
this.puesto = puesto; | |
this.telefono = telefono; | |
this.domicilio = domicilio; | |
this.actividad = actividad; | |
this.ingreso_mensual = ingreso_mensual; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment