-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSmartwatch.java
More file actions
37 lines (31 loc) · 1.03 KB
/
Smartwatch.java
File metadata and controls
37 lines (31 loc) · 1.03 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
package lojaeletronicos;
public class Smartwatch extends Produtos {
private static final long serialVersionUID = 1L;
private String pulseira;
public Smartwatch(String marca, String modelo, int tela, String pulseira) {
super(marca, modelo, tela);
this.categoria = "Smartwatch";
this.pulseira = pulseira;
}
@Override
public String toString() {
return "\n======" + getCategoria() + "======" +
"\nMarca: " + getMarca() +
"\nModelo: " + getModelo() +
"\nTela: " + getTela() + "mm" +
"\nPulseira: " + getPulseira() +
"\n" + funcionalidades();
}
@Override
public String funcionalidades() {
return "Funções do " + getCategoria() + ":" +
"\n- Mostrar as horas" +
"\n- Notificações" +
"\n- Troca suas músicas" +
"\n- Alarme" +
"\n- Clima/Tempo";
}
public String getPulseira() {
return pulseira;
}
}