- build-in types and user defined types
- data component and method/functions
- Access control: public and private
- Put the source code into a header and a CPP
- Constructors
- Default Constructors
- Destructors
- Initialization
- const member functions
- const member variables
- static member variables
Create a simple class. Please try to test:
- access a private member
- modify a const data member
- modify a data member in a const function
- initialize a const data member