전역함수GlobalFunction

c#은 전역함수가 없는데..

static을 통해서 어디서나 접근가능한 함수를 만들 수 있다

static함수는 정적함수라고 불리기도 하고…

static 클래스도 가능하고 경우에 따라 쓰인다.

struct와 enum은 기본적으로 staticr과 비슷한 방식으로 선언되는데…..된다.

 

Leave a Reply

Your email address will not be published. Required fields are marked *

 characters available