From 1aff4e9b301910f81ff02d580fda83974c525c86 Mon Sep 17 00:00:00 2001 From: Lev Date: Sun, 5 Sep 2021 19:17:32 -0500 Subject: [PATCH] Update constructor fucntions for Vehicle and Train --- .../Topic 6/6.5.1 Inheritance.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()