Escolar Documentos
Profissional Documentos
Cultura Documentos
int matricula;
String nome;
String CPF;
String data_nasc;
Curso curso;
void alterarNome(String n) {
this.nome = n;
}
String gerarBoletim() {
String boletim ="Boletim\n";
boletim += "Nome: "+this.nome+"\n";
boletim += "Matrícula: "+this.matricula+"\n";
boletim += "CPF: "+this.CPF+"\n";
boletim += "Data de Nascimento: "+this.data_nasc+"\n";
if(this.curso != null) {
boletim += "Curso: "+ this.curso.getNome()+"\n";
}else {
boletim += "Curso não definido.\n";
}
return boletim;