Advertisement
Welton

Funcionario.java

May 20th, 2018
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement