Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. package manejoVentanasEstudiantes;
  2.  
  3. /**En esta clase nos encargamos de poner los atributos que tiene el estudiante
  4.  *
  5.  * @author Rafa
  6.  */
  7. public class Estudiante {
  8.     private String cedula;
  9.     private String nombre;
  10.     private String apellido;
  11.     private int edad;
  12.     private int nota1;
  13.     private int nota2;
  14.     private int nota3;
  15.     private double promedio = 1;
  16.     private String estado=null;
  17.    
  18.     public Estudiante(String cedula, String nombre, String apellido, int edad, int nota1, int nota2, int nota3, float promedio, String estado) {
  19.         this.cedula = cedula;
  20.         this.nombre = nombre;
  21.         this.apellido = apellido;
  22.         this.edad = edad;
  23.         this.nota1 = nota1;
  24.         this.nota2 = nota2;
  25.         this.nota3 = nota3;
  26.         this.promedio = promedio;
  27.         this.estado = estado;
  28.     }
  29.  
  30.     public String getEstado() {
  31.         return estado;
  32.     }
  33.  
  34.     public void setEstado(String estado) {
  35.         this.estado = estado;
  36.     }
  37.  
  38.     public double getPromedio() {
  39.         return promedio;
  40.     }
  41.  
  42.     public void setPromedio(float promedio) {
  43.         this.promedio = promedio;
  44.     }
  45.  
  46.     public String getApellido() {
  47.         return apellido;
  48.     }
  49.  
  50.     public void setApellido(String apellido) {
  51.         this.apellido = apellido;
  52.     }
  53.  
  54.     public String getCedula() {
  55.         return cedula;
  56.     }
  57.  
  58.     public void setCedula(String cedula) {
  59.         this.cedula = cedula;
  60.     }
  61.  
  62.     public int getEdad() {
  63.         return edad;
  64.     }
  65.  
  66.     public void setEdad(int edad) {
  67.         this.edad = edad;
  68.     }
  69.  
  70.     public String getNombre() {
  71.         return nombre;
  72.     }
  73.  
  74.     public void setNombre(String nombre) {
  75.         this.nombre = nombre;
  76.     }
  77.  
  78.     public int getNota1() {
  79.         return nota1;
  80.     }
  81.  
  82.     public void setNota1(int nota1) {
  83.         this.nota1 = nota1;
  84.     }
  85.  
  86.     public int getNota2() {
  87.         return nota2;
  88.     }
  89.  
  90.     public void setNota2(int nota2) {
  91.         this.nota2 = nota2;
  92.     }
  93.  
  94.     public int getNota3() {
  95.         return nota3;
  96.     }
  97.  
  98.     public void setNota3(int nota3) {
  99.         this.nota3 = nota3;
  100.     }
  101. }