daniman

Aluno.class

Nov 24th, 2011
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.89 KB | None | 0 0
  1. /*
  2.  * To change this template, choose Tools | Templates
  3.  * and open the template in the editor.
  4.  */
  5. package listaMetodosEstaticos;
  6.  
  7. /**
  8.  *
  9.  * @author sei
  10.  */
  11. public class Aluno {
  12.    
  13.     private String nome, curso;
  14.     private int matricula;
  15.  
  16.     public Aluno(String nome, String curso , int matricula) {
  17.         this.nome = nome;
  18.         this.curso = curso;
  19.         this.matricula = matricula;
  20.     }
  21.    
  22.    
  23.  
  24.     public String getCurso() {
  25.         return curso;
  26.     }
  27.  
  28.     public int getMatrícula() {
  29.         return matricula;
  30.     }
  31.  
  32.     public String getNome() {
  33.         return nome;
  34.     }
  35.  
  36.     public void setCurso(String curso) {
  37.         this.curso = curso;
  38.     }
  39.  
  40.     public void setMatrícula(int matrícula) {
  41.         this.matricula = matrícula;
  42.     }
  43.  
  44.     public void setNome(String nome) {
  45.         this.nome = nome;
  46.     }
  47.    
  48.    
  49.    
  50.    
  51. }
  52.  
  53.  
  54.  
Advertisement
Add Comment
Please, Sign In to add comment