Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.91 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 exercicio;
  7.  
  8. /**
  9.  *
  10.  * @author wilia
  11.  */
  12. public class EXE9 {;
  13.     private String nome;
  14.     private float nota;
  15.  
  16.     public EXE9() {
  17.         throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
  18.     }
  19.  
  20.     public String getNome() {
  21.         return nome;
  22.     }
  23.  
  24.     public void setNome(String nome) {
  25.         this.nome = nome;
  26.     }
  27.  
  28.     public float getNota() {
  29.         return nota;
  30.     }
  31.  
  32.     public void setNota(float nota) {
  33.         this.nota = nota;
  34.     }
  35.  
  36.         public EXE9(String nome) {
  37.         setNome(nome);
  38.     }
  39.    
  40.     public EXE9(String nome, float nota){
  41.         setNome(nome);
  42.         setNota(nota);
  43.     }
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement