const attribute in class, should be public or protected?
<p>I have some attributes which are const, so should these attributes be made public or protected ?</p>

<p>I was in support of protected because it is used by some of the derived classes, but my friend argued that since it is const, it doesnt make any difference even if it is public, which also makes some sense.</p>

<p>But, as I learnt cpp, I thought if possible, we should try to make attributes protected or private and use accessors to change them ??</p>

<p>Thanks.</p>
