• C++ Learning Note
  • Introduction
  • C++ for C Programmers
    • Week 1
    • Week 2
    • Week 3
  • Reference
    • Reference V.S. Pointer
  • Smart Pointers
    • Unique Pointer
    • Shared Pointer
    • Weak Pointer
  • Creating Objects
    • malloc and free
    • new and delete
  • Class
    • Member Properties
    • Class V.S. Struct
    • Inheritance
    • Keywords
      • virtual
      • override
      • final
      • friend
  • Constructor and Deconstructor
    • Ways to construct objects
    • Initializer Lists
    • Writing a Safer Constructor
    • When Is Member Created and Deleted
    • Explicitly Release the Occupied Memory
    • Copy Constructor
    • Move Constructor
    • Default and Delete
    • Virtual Destructor in Polymorphism
  • Template
    • Parameters
    • Type-safe Wrapper Class
  • Memory management
    • Memory Leaks
    • Memory Fragment
    • Memory Pool
  • Appendix
    • Naming Patterns
    • Functor
    • Predefined Macros
    • Preprocessor Macros V.S. Inline Functions
    • Safer Macros
    • Uses of Const in C++
    • Providing Read-only Class Members
    • Operator overloading
    • Dijkstra
Powered by GitBook

Providing Read-only Class Members

http://stackoverflow.com/questions/4232843/class-design-question-how-to-provide-read-only-access-to-class-member-containe

results matching ""

    No results matching ""