SHARE
TWEET

Funcionario.java

Welton May 20th, 2018 115 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class Funcionario {
  2.     private String nome;
  3.     private String cpf;
  4.     private double salario;
  5.    
  6.    
  7.     public double getBonificacao() {
  8.         return this.salario * 0.1;
  9.     }
  10.    
  11.     public String getNome() {
  12.         return nome;
  13.     }
  14.  
  15.     public void setNome(String nome) {
  16.         this.nome = nome;
  17.     }
  18.  
  19.     public String getCpf() {
  20.         return cpf;
  21.     }
  22.  
  23.     public void setCpf(String cpf) {
  24.         this.cpf = cpf;
  25.     }
  26.  
  27.     public double getSalario() {
  28.         return salario;
  29.     }
  30.  
  31.     public void setSalario(double salario) {
  32.         this.salario = salario;
  33.     }
  34.  
  35.    
  36. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top