KSCOLD LogoKSCOLD
Blog
Feed
Product
Admin Night
Vault
Guestbook
Info

Vault 목록

implements

연결된 노트와 함께 읽기

implements

2026년 5월 17일
  • 타입스크립트(TypeScript)에서 implements키워드는 클래스(class)의 Interface에 만족하는지 여부를 체크할 때 사용된다.

  • implements한 Interface의 타입 표기(Type Annotation)가 없다면 에러(error)를 반환한다.

  • 부모 클래스(class)부터 자식클래스로 클래스(class)를 Interface로 상속할 때, 사용하는 키워드(Keyword)이고, 이를 통해서, Interface와 클래스(class)를 동시에 확장할 수 있다.

  • implements로 상속(Inheritance)을 받으면 인터페이스(Interface)의 메서드(Method)를 반드시 구현을 해야하기 때문에, 실수와 오류를 줄일 수 있다.

Synapse Map Insight