-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathelevador.java
More file actions
29 lines (24 loc) · 854 Bytes
/
Copy pathelevador.java
File metadata and controls
29 lines (24 loc) · 854 Bytes
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
class Onibus {
int total_andares;
int andar_atual;
int capacidade_de_pessoas;
int pessoas_dentro;
public Elevador(int total_andares, int andar_atual, int capacidade_de_pessoas, int pessoas_dentro) {
this.total_andares = total_andares;
this.andar_atual = andar_atual;
this.capacidade_de_pessoas = capacidade_de_pessoas;
this.pessoas_dentro = pessoas_dentro;
}
public int returnTotal_andares(){
return this.total_andares;
}
public int returnAndar_atual(){
return this.andar_atual;
}
public int returnCapacidade_de_pessoas(){
return this.capacidade_de_pessoas
}
public int returnPessoas_dentro(){
return this.pessoas_dentro
}
} //OBS: Não consegui rodar o programa, então não sei se funciona.