Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package exerc11;
- public class Empregado {
- private String nome="";
- private int cpf;
- private double salario;
- public String getNome() {
- return nome;
- }
- public void setNome(String nome) {
- this.nome = nome;
- }
- public int getCpf() {
- return cpf;
- }
- public void setCpf(int cpf) {
- this.cpf = cpf;
- }
- public double getSalario() {
- return salario;
- }
- public void setSalario(double salario) {
- this.salario = salario;
- }
- public void empregadocpf(String nome, int cpf) {
- this.cpf = cpf;
- this.nome = nome;
- }
- public void getInformacao(double salario){
- this.salario = salario;
- this.empregadocpf(this.nome, this.cpf);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement