Update constructor fucntions for Vehicle and Train

This commit is contained in:
Lev
2021-09-05 19:17:32 -05:00
parent ca67a8d998
commit 1aff4e9b30

View File

@ -20,7 +20,7 @@ class Train : public Vehicle
Train::Train()
{
std::cout << "Train constructor" << std::endl;
}
void Train::beepHorn()
@ -37,7 +37,7 @@ void Train::beepHorn()
Vehicle::Vehicle() : speed(0.0f)
{
std::cout << "Vehicle constructor" << std::endl;
}
float Vehicle::getspeed()