Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Candidato{
- int numero,
- votos=0;
- String nome;
- boolean classificado(int votosminimos){
- return (this.votos>=votosminimos);
- }
- boolean classificado(){
- return (this.votos>=10);
- }
- void show(){
- System.out.print("\nNome : "+this.nome);
- System.out.print("\nNumero: "+this.numero);
- System.out.print("\nVotos : "+this.votos);
- System.out.println();
- }
- }
Add Comment
Please, Sign In to add comment