Welton

Gerente.java

May 20th, 2018
113
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class Gerente extends Funcionario {
  2. private int senha;
  3.  
  4. public void setSenha(int senha) {
  5. this.senha = senha;
  6.  
  7. }
  8.  
  9. public boolean autentica(int senha) {
  10. if (this.senha == senha) {
  11. return true;
  12. } else {
  13. return false;
  14. }
  15. }
  16.  
  17. }
RAW Paste Data