Skip to content

Instantly share code, notes, and snippets.

@IsaacGonzalez
Created May 14, 2013 19:14
Show Gist options
  • Save IsaacGonzalez/5578636 to your computer and use it in GitHub Desktop.
Save IsaacGonzalez/5578636 to your computer and use it in GitHub Desktop.
Constructores de la clase Empleo - Becas
// 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