No author
This post's author information has been deleted.
[MMORPG Game Development Series with C# and Unity] Part 1: Introduction to Basic C# Programming
Multidimensional array
Written on
·
179
1
강의 들으면서 클래스 안에 클래스를 선언한 경우는 처음 보는 것 같아서 질문합니다.
Map 클래스를 Program 클래서 외부에 선언해도 결과물은 똑같게 나오는데, 어떤 경우에 클래스 안에 클래스를 선언하나요?
Answer 1
기본적으로 외부에 선언하는거랑 똑같은데,차이가 있다면 내부에서 상위 클래스 멤버(private)에 자유롭게 접근 가능합니다.