강의

멘토링

커뮤니티

Inflearn Community Q&A

ekrkwu11's profile image
ekrkwu11

asked

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

TextRPG2 Monster Creation

1:40분쯤 creature type 지정해줄때

Written on

·

367

0

작성을 하다보면 

CreatureType Type;

        protected int hp = 0;

        protected int attack = 0;

        protected Creature(CreatureType type)

        {

            this.Type = type;

        }

이렇게 작성하면 반환값이 없다고 하면서 오류가 나길래protected void 를 붙였더니 오류가 사라지는데 이게 아직 다른 값들을 작성전인데 void 를 붙여도 나중에 상관없나요?

C#

Answer 1

0

ekrkwu11님의 프로필 이미지
ekrkwu11
Questioner

이게 대소문자 떄문에 그런거 같네요.... ㅠㅠ  알게 되었지만 질문은 일단 남겨둘꼐요 ..ㅎㅎ;

ekrkwu11's profile image
ekrkwu11

asked

Ask a question