
TypeScript
implements 키워드
interface 용도 1. 타입 지정 2. class 타입 확인 class Car { model : string; price : number = 1000; constructor(a :string){ this.model = a } } let 붕붕이 = new Car('morning'); 위 class가 model, price 속성을 가지는지 타입으로 확인하고 싶다면 => interface + implements 키워드를 사용 interface CarType { model : string, price : number } class Car implements CarType { model : string; price : number = 1000; constructor(a :string){ this.model ..