For starters, you should remove #include "Car.h"
from Color.h
.
It creates an unnecessary circular include, and the compiler hits Car(Color a)
before it knows that Color
is a class.
You also need to include the header <string>
to output a string to cout.
Next time, maybe don’t insult the people who are helping you.
solved expected ‘)’ before object. class does not name a type [duplicate]