Why doesn't it work when I put "const" on the line 7 of my Car.h header. but work when i don;t put it?
i says that i should put the function as a constant
error message :
1 2 3
error: member function 'getType' not viable: 'this' argument has type 'const Car', but function is not const:
os<<car.Car::getType()<<" --> "<<car.Car::getPrice();
os<<" - ";