Advertisement
l_evandro

NotasEDisciplina

Jun 18th, 2019
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.50 KB | None | 0 0
  1. public class NotasEDisciplina{
  2.     private String disciplina;
  3.     private int notas[] = new int[8];
  4.  
  5.     //public Vetor(String disciplina, int notas[]){
  6.     //  this.notas = new int[8];
  7.     //  setDisciplina(disciplina);
  8.     //  setNotas(notas);
  9.     //}
  10.  
  11.     public void setDisciplina(String disciplina){
  12.         this.disciplina = disciplina;
  13.     }
  14.  
  15.     public String getDisciplina(){
  16.         return this.disciplina;
  17.     }
  18.  
  19.     public void setNotas(int notas[]){
  20.         this.notas = notas;
  21.     }
  22.  
  23.     public int[] getNotas(){
  24.         return notas;
  25.     }
  26.  
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement