Fixed Pessoa.nome
This commit is contained in:
parent
68a1209f70
commit
a77e1a1816
3 changed files with 7 additions and 7 deletions
|
|
@ -6,7 +6,7 @@ public class Aluno {
|
||||||
private int ano;
|
private int ano;
|
||||||
private boolean bolsista;
|
private boolean bolsista;
|
||||||
|
|
||||||
public Aluno(int nome, int idade, String localNascimento, String curso, String matricula, int semestre, int ano, boolean bolsista){
|
public Aluno(String nome, int idade, String localNascimento, String curso, String matricula, int semestre, int ano, boolean bolsista){
|
||||||
this.pessoa = new Pessoa(nome, idade, localNascimento);
|
this.pessoa = new Pessoa(nome, idade, localNascimento);
|
||||||
this.curso = curso;
|
this.curso = curso;
|
||||||
this.matricula = matricula;
|
this.matricula = matricula;
|
||||||
|
|
@ -15,7 +15,7 @@ public class Aluno {
|
||||||
this.bolsista = bolsista;
|
this.bolsista = bolsista;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getNome(){
|
public String getNome(){
|
||||||
return this.pessoa.getNome();
|
return this.pessoa.getNome();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,13 +3,13 @@ public class Bolsista{
|
||||||
private String projeto;
|
private String projeto;
|
||||||
private String orientador;
|
private String orientador;
|
||||||
|
|
||||||
public Bolsista(int nome, int idade, String localNascimento, String curso, String matricula, int semestre, int ano, boolean bolsista, String projeto, String orientador){
|
public Bolsista(String nome, int idade, String localNascimento, String curso, String matricula, int semestre, int ano, boolean bolsista, String projeto, String orientador){
|
||||||
this.aluno = new Aluno(nome, idade, localNascimento, curso, matricula, semestre, ano, bolsista);
|
this.aluno = new Aluno(nome, idade, localNascimento, curso, matricula, semestre, ano, bolsista);
|
||||||
this.projeto = projeto;
|
this.projeto = projeto;
|
||||||
this.orientador = orientador;
|
this.orientador = orientador;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getNome(){
|
public String getNome(){
|
||||||
return this.aluno.getNome();
|
return this.aluno.getNome();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,15 @@
|
||||||
public class Pessoa{
|
public class Pessoa{
|
||||||
private int nome;
|
private String nome;
|
||||||
private int idade;
|
private int idade;
|
||||||
private String localNascimento;
|
private String localNascimento;
|
||||||
|
|
||||||
public Pessoa(int nome, int idade, String localNascimento){
|
public Pessoa(String nome, int idade, String localNascimento){
|
||||||
this.nome = nome;
|
this.nome = nome;
|
||||||
this.idade = idade;
|
this.idade = idade;
|
||||||
this.localNascimento = localNascimento;
|
this.localNascimento = localNascimento;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getNome(){
|
public String getNome(){
|
||||||
return this.nome;
|
return this.nome;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue