GatoBooster

Gym 2

Apr 6th, 2016
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.87 KB | None | 0 0
  1.  
  2. /**
  3.  * Write a description of class Cliente here.
  4.  *
  5.  * @author (your name)
  6.  * @version (a version number or a date)
  7.  */
  8. public class Cliente
  9. {
  10.    //Declaración de las Variables
  11.    
  12.    private String rut;
  13.    private String nombre;
  14.    private String apellido;
  15.    private int edad; //int es para un valor  entero
  16.    private int valor;
  17.    private int horas;
  18.    private boolean estado; //true: pagos vigentes, false: deuda, cliente inactivo
  19.    private char sexo; // F: femenino o M: masculino
  20.    
  21.    //double es para un valor no entero
  22.    //char es para un character
  23.    
  24.    
  25.  
  26.    public Cliente()
  27.    {
  28.     rut = "";
  29.     nombre = "";
  30.     apellido = "";
  31.     edad = 0;
  32.     valor = 0;
  33.     horas = 0;
  34.     estado = false;
  35.     sexo = 'M';
  36.     }
  37.    
  38.    
  39.    
  40.    public Cliente
  41.    
  42.    
  43.    
  44.    
  45.    
  46.    
  47.    
  48.    
  49.    
  50.    
  51.    
  52.    
  53.    
  54. }
Advertisement
Add Comment
Please, Sign In to add comment