/*
* 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 prova;
/**
*
* @author aluno
*/
public class Candidato {
String nome;
int pontuacao;
public Candidato(String nome, int pontuacao) {
this.nome = nome;
this.pontuacao = pontuacao;
}
public void setNome(String nome) {
this.nome = nome;
}
public void setPontuacao(int pontuacao) {
this.pontuacao = pontuacao;
}
public int getPontuacao() {
return pontuacao;
}
@Override
public String toString() {
return "Candidato{" + "nome=" + nome + ", pontuacao=" + pontuacao + '}';
}
}
Sem comentários:
Enviar um comentário