Class Basics « Class « C++






1.Class forward declarationClass forward declaration
2.Simplest class definitionSimplest class definition
3.A simple class with member variable, constructor, destructorA simple class with member variable, constructor, destructor
4.Address class: class definition and implementationAddress class: class definition and implementation
5.Declare class instanceDeclare class instance
6.Constructor: different parameter typeConstructor: different parameter type
7.Declare Class instance and use themDeclare Class instance and use them
8.Assign object1 to object2Assign object1 to object2
9.Init Object arrayInit Object array