Output for add vehicle
Output for All Vehicles
I added a Google Drive link below so that you can download the
zipped file.
,
#ifndef VEHICLE_H #define VEHICLE_H #include QString class Vehicle { public: Vehicle(); virtual ~Vehicle(); void setID (const QString &id); void setBrand (const QString &brand); void setModel (const QString &model); void setPricePerDay (double pricePerDay); void setIsRented (bool isRented); QString getID() const; QString getBrand() const; QString getModel() const; double getPricePerDay() const; bool getIsRented() const; virtual QString typeName() const = 0; virtual void displayInfo() const; private: QString id; QString brand; QString model; double pricePerDay; bool isRented; }; #endif // VEHICLE_H
Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.
No worries! You can instantly pick a different document that better fits what you're looking for.
No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.
“Bought, downloaded, and aced it. It really can be that simple.”