/************************************************************* HHHH HHHH EEEEEEEE AAA DDDDDD EEEEEEEE RRRRRRR HH HH EEE EE AA AA DD DD EEE EE RR RRR HHHHHHH EEEEE AA AA DD DD EEEEE RRRRRR HH HH EEE EE AAAAAAAAA DD DD EEE EE RR RR HHHH HHHH EEEEEEEE AAAA AAAA DDDDDD EEEEEEEE RRRR RRR My header is WAY better than yours taxi.cpp by Dustin Luca *************************************************************/ #include using std::cout; #include "taxi.h" Taxi::Taxi(double fuel) : Vehicle(4,6,"yellow",fuel,5) { customers = false; } void Taxi::setCustomers(bool c) { customers = c; } bool Taxi::hasCustomers() const { return customers; } void Taxi::print() const { Vehicle::print(); if(customers) cout << "\tThe taxi currently has passangers.\n"; else cout << "\tThe taxi currently has no passangers.\n"; cout << "\tclass name: " << getClassName() << "\n"; } void Taxi::horn() const { cout << "beep beep"; } string Taxi::getClassName() const { return "Taxi"; }