Empregado.java

/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package testevetor1;

/**
*
* @author aluno
*/
public class Empregado {
String nome;
String timeFutebol;

public Empregado(String nome, String timeFutebol) {
this.nome = nome;
this.timeFutebol = timeFutebol;
}

public Empregado(String nome) {
this.nome = nome;
}

public void setNome(String nome) {
this.nome = nome;
}

public void setTime (String timeFutebol) {
this.timeFutebol = timeFutebol;
}

public String getNome() {
return this.nome;
}

public String getTime() {
return this.timeFutebol;
}
}

testevector.java

/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package testevetor1;

/**
*
* @author aluno
*/
public class Empregado {
String nome;
String timeFutebol;

public Empregado(String nome, String timeFutebol) {
this.nome = nome;
this.timeFutebol = timeFutebol;
}

public Empregado(String nome) {
this.nome = nome;
}

public void setNome(String nome) {
this.nome = nome;
}

public void setTime (String timeFutebol) {
this.timeFutebol = timeFutebol;
}

public String getNome() {
return this.nome;
}

public String getTime() {
return this.timeFutebol;
}
}

Este artigo foi útil ?
SimNão

Deixe um comentário

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *

Close Search Window