If is was a static int
you would need to place it into the .cpp file. You do not need the keyword static
in this instance as all you want is a constant. Just use const int cTotalCars = 5;
. It is better than #define
as you have type info and also it has a symbol that can be viewed in a debugger.