Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

instance 메서드와 class 메서드의 차이점을 설명하시오. #169

Open
sustainable-git opened this issue Aug 14, 2022 · 1 comment
Labels

Comments

@sustainable-git
Copy link
Member

No description provided.

@sustainable-git
Copy link
Member Author

  • swift에서 class method는 static func 또는 class func 와 같이 함수 앞에 static 또는 class 단어를 붙여 구현합니다. 객체를 initialize 하지 않아도 type 자체만으로 실행할 수 있습니다.
  • instance methods는 객체를 initialize 한 후 해당 instance를 통해 호출할 수 있습니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant