Skip to content

Instantly share code, notes, and snippets.

@httpmurilo
Created June 8, 2022 00:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save httpmurilo/7a174e2936af347b096ed3504ee8d520 to your computer and use it in GitHub Desktop.
Save httpmurilo/7a174e2936af347b096ed3504ee8d520 to your computer and use it in GitHub Desktop.
package com.escola.modelo;
public class Aluno {
public Aluno(String nome, Integer idade, String cidade) {
this.nome = nome;
this.idade = idade;
this.cidade = cidade;
}
public Aluno(String nome, Integer idade, String cidade, double notaDeCorte, Integer dividirPor) {
this.nome = nome;
this.idade = idade;
this.cidade = cidade;
this.notaDeCorte = notaDeCorte;
this.dividirPor = dividirPor;
}
public Aluno(String nome, Integer idade, String cidade, double notaDeCorte) {
this.nome = nome;
this.idade = idade;
this.cidade = cidade;
this.notaDeCorte = notaDeCorte;
}
//getters e setters
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment