Skip to content

Instantly share code, notes, and snippets.

@ArthurOliverB
Last active January 29, 2019 11:40
Show Gist options
  • Save ArthurOliverB/44d9c6a356c1cc68979f9f9bc244b43b to your computer and use it in GitHub Desktop.
Save ArthurOliverB/44d9c6a356c1cc68979f9f9bc244b43b to your computer and use it in GitHub Desktop.
class Animal {
constructor(nome, filo) {
this.nome = nome
this.filo = filo
}
apresentar() {
console.log(`Nome: ${this.nome}\nFilo: ${this.filo}`);
}
}
let cachorro = new Animal("Cachorro", "Cordados");
cachorro.apresentar()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment