Each class is generally implemented as two files, the declaration file with the .h extension, and the definition file with the .cpp extension.