Question: what is the difference between a .h file and a .cpp file?
Answer: . h files, or header files, are used to list the publicly accessible instance variables and and methods in the class declaration. .cpp files, or implementation files, are used to actually implement those methods and use those instance variables. The reason they are separate is because .