instance 메서드와 class 메서드의 차이점을 설명하시오.
실체화
하여 생성된 인스턴스를 통해 호출할 수 있는 메서드입니다.Class Method
는 인스턴스를 만들어 실체화 하지 않아도 클래스를 통해 직접적으로 호출할 수 있다.func
Keyword 앞에 class
키워드가 붙어 class func somthing(){}
형태로 선언한다.Instance Method
와 달리 struct
,enum
에서 사용할 수 없음struct, enum은 상속이 불가능 하기 때문이다.