Advertisement
fabioceep

Java: Classe Aluno

Feb 2nd, 2020
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.43 KB | None | 0 0
  1. /*
  2.  * To change this license header, choose License Headers in Project Properties.
  3.  * To change this template file, choose Tools | Templates
  4.  * and open the template in the editor.
  5.  */
  6. package com.sistemaescola;
  7.  
  8. /**
  9.  *
  10.  * @author fabio
  11.  */
  12. public class Aluno {
  13.  
  14.     private String nome;
  15.  
  16.     /**
  17.      * Get the value of nome
  18.      *
  19.      * @return the value of nome
  20.      */
  21.     public String getNome() {
  22.         return nome;
  23.     }
  24.  
  25.     /**
  26.      * Set the value of nome
  27.      *
  28.      * @param nome new value of nome
  29.      */
  30.     public void setNome(String nome) {
  31.         this.nome = nome;
  32.     }
  33.  
  34.     private int id;
  35.  
  36.     /**
  37.      * Get the value of id
  38.      *
  39.      * @return the value of id
  40.      */
  41.     public int getId() {
  42.         return id;
  43.     }
  44.  
  45.     /**
  46.      * Set the value of id
  47.      *
  48.      * @param id new value of id
  49.      */
  50.     public void setId(int id) {
  51.         this.id = id;
  52.     }
  53.  
  54.     private String mae;
  55.  
  56.     /**
  57.      * Get the value of mae
  58.      *
  59.      * @return the value of mae
  60.      */
  61.     public String getMae() {
  62.         return mae;
  63.     }
  64.  
  65.     /**
  66.      * Set the value of mae
  67.      *
  68.      * @param mae new value of mae
  69.      */
  70.     public void setMae(String mae) {
  71.         this.mae = mae;
  72.     }
  73.    
  74.     public void salvar(){
  75.         System.out.println("id...: "+id);
  76.         System.out.println("nome.: "+nome);
  77.         System.out.println("mae..: "+mae);
  78.      
  79.     }
  80.    
  81. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement