-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAluno.java
More file actions
48 lines (37 loc) · 1.01 KB
/
Aluno.java
File metadata and controls
48 lines (37 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
public class Aluno extends Pessoa {
private String curso;
private double[] notas;
public Aluno() {}
public Aluno(String nome, String endereco, String telefone, String cpf, String telefoneCelular, String curso, double[] notas) {
super(nome, endereco, telefone, cpf, telefoneCelular);
this.curso = curso;
this.notas = notas;
}
public String getCurso() {
return curso;
}
public void setCurso(String curso) {
this.curso = curso;
}
public double[] getNotas() {
return notas;
}
public void setNotas(double[] notas) {
this.notas = notas;
}
public double calcularMedia() {
return 0;
}
public boolean verificarAprovado() {
return true;
}
public void metodoQualquer(){
super.setCpf("345345345354");
this.setCpf("34534534");
}
public String obterEtiquetaEndereco() {
String s = "Endereço do Aluno: ";
s += this.getEndereco();
return s;
}
}