diff --git a/CM2005 Object Oriented Programming/Topic 6/6.5.1 Inheritance.cpp b/CM2005 Object Oriented Programming/Topic 6/6.5.1 Inheritance.cpp index 0f639d8..d0e3ed8 100644 --- a/CM2005 Object Oriented Programming/Topic 6/6.5.1 Inheritance.cpp +++ b/CM2005 Object Oriented Programming/Topic 6/6.5.1 Inheritance.cpp @@ -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()