Created
April 29, 2017 01:23
-
-
Save hrajchert/50f445c5c0ce95450f93910ba6c7272c to your computer and use it in GitHub Desktop.
This file contains 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
// TypeScript | |
class Perro { | |
constructor (nombre) { | |
// this.nombre = nombre; | |
} | |
hablar () { | |
console.log('woof'); | |
// console.log('woof, soy', this.nombre); | |
} | |
} | |
class Gato { | |
constructor () { | |
console.log('creando gato'); | |
} | |
hablar (){ | |
console.log('miau'); | |
} | |
_secreto () { | |
console.log('planes para conquistar el mundo aqui <--'); | |
} | |
} | |
let michifus = new Gato(); | |
michifus._secreto(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment