
Jose Luis Campos Bautista
Pregunta¿TypeScript soporta herencia multiple?

Cristobal Vega
En realidad ningún lenguaje orientado a objetos te permite utilizar herencia múltiple, creo. :thinking:

Juan Castro
No de clases. Pero sí de interfaces. Y esto nos permite usar algunos trucos. ¡Muajajaja!
Podemos heredar de una una clase que hereda de diferentes interfaces. :o :tada:
interface IBar { doBarThings(); } interface IBazz { doBazzThings(); } class FooBase implements IBar, IBazz { doBarThings() {} doBazzThings() {} } class Foo extends FooBase { doFooThings() { super.doBarThings(); super.doBazzThings(); } }
:point_right: Herencia de múltiples clases en TypeScript