강의

멘토링

커뮤니티

Inflearn Community Q&A

cmksj's profile image
cmksj

asked

Following and Learning C++ with Hong Jeong-mo

8.9 Classes and const

int getvalue() const에서 const는 왜 뒤에 붙는건가요?

Resolved

Written on

·

429

0

안녕하세요!

본 강의에서 attribute에 const를 사용할 때 제일 뒤에 const를 붙이셨잖아요. 다른데서는 const가 다 앞에 붙는데 attribute에만 뒤에 붙이는 이유가 따로 있을까요?

c++C++

Answer 2

0

안녕하세요,

이 질문은 강의에서 이미 언급이 되었던 내용이기 때문에

강의를 잘 복습해보시면 분명 답을 찾을 수 있을 것이라 생각합니다 :)

https://domybestinlife.tistory.com/102

 

Creed님의 프로필 이미지
Creed
Questioner

답변 감사합니다!!

0

함수에서는 const가 뒤에 붙습니다.

Creed님의 프로필 이미지
Creed
Questioner

답변 감사합니다!!

cmksj's profile image
cmksj

asked

Ask a question