Created
June 8, 2022 00:40
-
-
Save httpmurilo/7a174e2936af347b096ed3504ee8d520 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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