티스토리

J's Study log
검색하기내 프로필
Computer Language/C++

[C++] const

정우섭 2020. 2. 8. 17:07

Const Function

1
void ShowRecInfo() const;
cs

It means 'In this function the value of member variable will not be changed'.

 

In const function you can only call const functions, otherwise a compile error will occur.

저작자표시 비영리 변경금지 (새창열림)

블로그 정보

J's Study log

구독하기
J's Study log, 블로그 홈
댓글수0
문의안내
  • 티스토리
  • 로그인
  • 고객센터
© Kakao Corp.