instance 메서드와 class 메서드의 차이점을 설명하시오.
Opened this issue · 1 comments
sustainable-git commented
instance 메서드와 class 메서드의 차이점을 설명하시오.
sustainable-git commented
- swift에서 class method는
static func
또는class func
와 같이 함수 앞에 static 또는 class 단어를 붙여 구현합니다. 객체를 initialize 하지 않아도 type 자체만으로 실행할 수 있습니다. - instance methods는 객체를 initialize 한 후 해당 instance를 통해 호출할 수 있습니다.