Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

209
Vistas
Why I don't get compile time error when I am not implementing some method from my interface which is implemented in base class?

I have the following code

interface IDownload {
  downloadFile(): void;
}

class BaseClass implements IDownload {
  downloadFile(): void {
    console.log('some logic here');
  }
}

class Sub extends BaseClass {

}

so my sub class has access to the methods from BaseClass because we are extending from that class.

My base class implement some method from interface.

When i try to extend the class and implement again the same interface

class Sub extends BaseClass implements IDownload {

}

I don't get compile time error that i need to implement the method from IDownload. I guees it is like that because it sees that the base class already implements it.

But i want to have that check also here in my sub class because i want to have the interface contract in the base class where all the methhods will exist on the sub class.

How can i do this ?

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda