Skip to content

Instantly share code, notes, and snippets.

@hrajchert
Created April 29, 2017 01:23
Show Gist options
  • Save hrajchert/50f445c5c0ce95450f93910ba6c7272c to your computer and use it in GitHub Desktop.
Save hrajchert/50f445c5c0ce95450f93910ba6c7272c to your computer and use it in GitHub Desktop.
// 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