GatoBooster

Empresa1

Apr 16th, 2016
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.79 KB | None | 0 0
  1. public class Empresa1
  2. {
  3.    private String rut,nombres,apellidoPaterno,apellidoMaterno,fechaDeNacimiento,direccion;
  4.    private double peso,estatura;
  5.    private char sexo; // 'M': masculino y 'F': femenino
  6.    
  7.    public Empresa1()
  8.    {
  9.        rut = "";
  10.        nombres = "";
  11.        apellidoPaterno = "";
  12.        apellidoMaterno = "";
  13.        peso = 0;
  14.        estatura = 0;
  15.        sexo = 'M';
  16.        fechaDeNacimiento = "";
  17.        direccion = "";
  18.    }
  19.  
  20.    public Empresa1(String rut,String nombres,String apellidoPaterno,String apellidoMaterno,double peso,double estatura,char sexo,String fechaDeNacimiento,String direccion)
  21.    {
  22.        this.rut = rut;
  23.        this.nombres = nombres;
  24.        this.apellidoPaterno = apellidoPaterno;
  25.        this.apellidoMaterno = apellidoMaterno;
  26.    }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment