강의

멘토링

커뮤니티

Inflearn Community Q&A

kangmingu4030607's profile image
kangmingu4030607

asked

Stanford iOS Korean subtitle lecture

Let's Build a Calculator ⑪: Let's Upgrade Operation Functions - Binary Operations

func multiply의 위치

Written on

·

259

0

func multiply() 가 class 밖에 있을 때와 안에 있을 때의 차이를 알고싶습니다. 밖에 선언했을 때 오류가 없고 안에 선언했을 때 오류가 발생하는 부분이 있었습니다.
ios

Answer 1

0

클래스의 속성과 메서드는 인스턴스로 생성해야 사용할 수 있습니다. 단 static으로 선언된 함수라면 가능합니다.

kangmingu4030607's profile image
kangmingu4030607

asked

Ask a question