-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFilme.js
More file actions
38 lines (30 loc) · 721 Bytes
/
Filme.js
File metadata and controls
38 lines (30 loc) · 721 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
30
31
32
33
34
35
36
37
38
class Filme{
constructor(titulo, ano, genero){
this.titulo = titulo;
this.diretor = "";
this.ano = ano;
this.genero = genero;
this.atores = [];
this.duracao = 0;
}
Reproduzir(){
console.log("Reproduzindo...");
}
Pause(){
console.log("Pausado ||");
}
Avancar(){
console.log("Avançar >>");
}
Fechar(){
console.log("Fechar X");
}
Ficha(){
console.log("Título: " + this.titulo);
console.log("Gênero: " + this.genero);
console.log("Ano: " + this.ano);
this.Reproduzir();
}
}
var vingadores = new Filme("Vingadores", 2018, "Ação");
vingadores.Ficha();