Advertisement
veto14

funcionario.java

Sep 27th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. package empresaHipotetica;
  2.  
  3. public class Funcionario {
  4. String nome;
  5. String departamento;
  6. String cargo;
  7. Double salario;
  8. private int matfun;
  9. static int matricula = 1000;
  10. Funcionario(String nome, double sal, String dep, String cargo){
  11. this.nome = nome;
  12. salario = sal;
  13. departamento = dep;
  14. this.cargo = cargo;
  15. matfun = matricula;
  16. matricula++;
  17. }
  18. public int getmatfun() {
  19. return matfun;
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement