Rectangle::Rectangle(USHORT width, USHORT height)
{
itsWidth = width;
itsHeight = height;
}
-----------------------------------------------------------
Rectangle::Rectangle(int width, int height):
itsWidth(width), itsHeight(height)
{}
이 두가지가 같은 말인가요?? 생성자 선언한 부분인데 :가 무슨역할을 하는지 잘 모르겠습니다 ㅠㅠ
같다. 뭔 역할 하겠냐. 변수에 값 쌔려박는거지.
http://stackoverflow.com/questions/16968493/arguments-after-a-colon-in-class-constructor
김민정인가?
행님 감사합니다 ㅎㅎ
이니셜라이져파워레인져