C# 선택적 매개변수와 명명된 매개변수

용준·2024년 9월 24일

Study

목록 보기
13/22
int Area(int width, int height)
{
	return width * height;
}

void Start()
{
	Area(100, 50); 				// 선택적 매개변수
    Area(height:50, width:100); // 명명된 매개변수
}

0개의 댓글