Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

197
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!