Clover Lucky Charms

아자아자!

· 💡 URECA
TS 상속인터페이스는 키워드를 통해 클래스가 따라야 하는 유형을 정의하는데 사용인터페이스: 복합적 구조를 나타내기 위해 사용된다.// 인터페이스 이름: Shape// 인터페이스: 복합적 데이터 단위, 이름만으로 가치가 있다.// 인터페이스를 잘 만들어야 좋다// return 타입이 number이다.interface Shape {// getArea의 파라미터는 없고 return 타입은 number getArea: () => number;}// interface의 상속(구현은) implements이다. // Rectangle클래스가 두개 이상의 인터페이스(Shape, A) 구현방법class Rectangle implements Shape { public constructor(protected readon..
하나둘세현
'아자아자!' 태그의 글 목록