Last active
January 29, 2019 11:40
-
-
Save ArthurOliverB/44d9c6a356c1cc68979f9f9bc244b43b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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