강의

멘토링

커뮤니티

Inflearn Community Q&A

hamgist201826's profile image
hamgist201826

asked

[MMORPG Game Development Series with C# and Unity] Part 1: Introduction to Basic C# Programming

ref, out

함수 선언

Written on

·

241

0

단순한 질문인데 main 안에 함수 호출할때 program 앞에 안붙여도되나여?9:21

C#

Answer 1

0

Rookiss님의 프로필 이미지
Rookiss
Instructor

네!
Main 함수도 Program class 내부에 있기 때문에 생략 가능합니다.
C++과 다르게 전역 함수 같은 존재가 없어서
이런 식으로 다른 class에서 기생하는 static 함수로 존재하고 있습니다.

hamgist201826's profile image
hamgist201826

asked

Ask a question