인프런 영문 브랜드 로고
인프런 영문 브랜드 로고

Inflearn Community Q&A

킴kim's profile image
킴kim

asked

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

Create a TextRPG Player

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

Written on

·

221

1

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

CreatePlayer(ref hp, ref attack);

으로 하면 안되나요? 

C#

Answer 2

3

rookiss님의 프로필 이미지
rookiss
Instructor

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

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

0

킴kim님의 프로필 이미지
킴kim
Questioner

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

킴kim's profile image
킴kim

asked

Ask a question