C++ Language/Objects/ConstMembers

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Both data members and member functions could be marked by the const keyword, but the implications of that depend on which kind of member it is.

  1. Const Data Members
  2. Const Member Functions