I try to access one of the variable in its corresponding cpp file but I get an error message saying it's undefined. I did #include the header file. Why is this?
Are your accesses to the variables properly qualified? If you're not working in the same scope, without any using-declarations, then you will have to explicitly add the namespace to qualify access to the variable.
C++ is case sensitive. In your header file, your private members are 'year', 'make', and 'speed'...however in your implementation file, you refer to them as 'Year', 'Make', and 'Speed'.