강의

멘토링

커뮤니티

Inflearn Community Q&A

inhee6471201's profile image
inhee6471201

asked

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

Create a TextRPG Player

왜 ref 대신 out을 사용하시나요??

Written on

·

245

1

이전 문법 수업에서 설명해주신거 다시 보고왔는데도 왜  ref대신 out을 쓰는지 이해가 안갑니다.

CreatePlayer(ref hp, ref attack);

으로 하면 안되나요? 

C#

Answer 2

3

Rookiss님의 프로필 이미지
Rookiss
Instructor

비슷한 질문이 올라온 기억이 있어서 링크 첨부 드립니다.

https://www.inflearn.com/questions/30171

0

inhee6471201님의 프로필 이미지
inhee6471201
Questioner

읽어보니까 이제 대충 이해가 됩니다. 빠른 답변 감사합니다.

inhee6471201's profile image
inhee6471201

asked

Ask a question