#include "Vehicle.h" #include "Truck.h" #include "Sportscar.h" Vehicle::Vehicle() : weight(0), year(0) { cout << "Vehicle's Constructor Called\n"; } Vehicle::~Vehicle() { cout << "Vehicle's Destructor Called\n"; } void Vehicle::display() { cout << "\nWeight : " << weight << " lbs." << "\nYear : " << year << "\nLicense: " << license_plate_no << endl; } void Vehicle::set_license_no(string the_license) { license_plate_no = the_license; } void Vehicle::set_weight(double the_weight) { weight = the_weight; } void Vehicle::set_year(int the_year) { year = the_year; } double Vehicle::get_weight() { return weight; } int Vehicle::get_year() { return year; } string Vehicle::get_license_no() { return license_plate_no; } void Vehicle::honk() { cout << "HONK!\n"; }