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

Inflearn Community Q&A

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

Map 클래스를 Program 클래스 안에 선언한 이유가 따로 있나요?

Written on

·

179

1

강의 들으면서 클래스 안에 클래스를 선언한 경우는 처음 보는 것 같아서 질문합니다.

Map 클래스를 Program 클래서 외부에 선언해도 결과물은 똑같게 나오는데, 어떤 경우에 클래스 안에 클래스를 선언하나요?

C#

Answer 1

1

rookiss님의 프로필 이미지
rookiss
Instructor

기본적으로 외부에 선언하는거랑 똑같은데,
차이가 있다면 내부에서 상위 클래스 멤버(private)에 자유롭게 접근 가능합니다.

No author

This post's author information has been deleted.

Ask a question