interfaces are usually used to define the necessary methods before implementing a class.optional properties are properties that are not required in an
→ Open in Slid인터페이스는 클래스를 구현하기 전에 필요한 메서드를 정의하는 용도로 사용합니다.타입스크립트에서는 좀 더 다양한 것들을 정의하는데 사용한다 .인터페이스 imageage 는 속성이 number 이기때문에 문자열을 넣을려고 하면 에러가 발생한다.선택