You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
해당 issue는 실습을 하지 않고 개념만 작성한 issue 입니다. 진도를 빠르게 넘어가기 위함이니 아래 개념만 익혀두면 설명이 충분합니다. 따라 실습관련 브랜치는 없습니다.
🔥KeyWord
interface
📝Description
왜 interface를 사용하는가
하나의 interface를 가지고 클래스형에서 다양한 클래스를 생성할 수 있게 된다. 이와 마찬가지로 함수형 또한 그러하다. 즉, 어떤 변수, 함수를 사용할지 모를 때 만들어져 있는 interface인 type을 사용하면 그만인 것이다. 더 나아가 프로젝트에서 약속한, 미리 구성되어 있는 interface에 우리가 의존한다면 타입이 지정되어 있는 안전하고 클린한 코드들을 충분히 만들어 낼 수 있는 것이다.
interface를 어떻게 재활용할까?
untility 디렉토리와 같은 하나의 디렉토리에서 규칙을 세워서 유지보수 관리하면서 extends와 implement와 같은 확장성을 사용해야 한다. 따라 어떤 무엇이 어떤 타입을 가질지에 많은 고찰과 성찰의 시간을 가지면서 활용해야 한다.
✍Udemy/section5/74: Think about interface
🔥KeyWord
📝Description
📌Summary
The text was updated successfully, but these errors were encountered: