Class Member « Class « C++






1.The Member Initialization SyntaxThe Member Initialization Syntax
2.Assign values using the member initialization syntaxAssign values using the member initialization syntax
3.Use class name to reference field name
4.getName member function reads from the name member variable and the setName member function writes to it
5.enum field