Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "Plane.h"
- Plane::Plane()
- {
- }
- Plane::Plane(double wi, string p, string b, int n, int m, int w, double t, Engine *e)
- {
- wingspan = wi;
- planeType = p;
- businessType = b;
- numOfEngines = n;
- maxOccupancy = m;
- numOfWheels = w;
- topSpeed = t;
- type = *e;
- }
- Plane::~Plane()
- {
- }
- void Plane::print()
- {
- }
- void Plane::setWingspan(double wi)
- {
- wingspan = wi;
- }
- void Plane::setPlaneType(string p)
- {
- planeType = p;
- }
- void Plane::setBusinessType(string b)
- {
- businessType = b;
- }
- void Plane::setNumOfEngines(int n)
- {
- numOfEngines = n;
- }
- void Plane::setMaxOccupancy(int m)
- {
- maxOccupancy = m;
- }
- double Plane::getWingspan()
- {
- return wingspan;
- }
- string Plane::getPlaneType()
- {
- return planeType;
- }
- string Plane::getBusinessType()
- {
- return businessType;
- }
- int Plane::getNumOfEngines()
- {
- return numOfEngines;
- }
- int Plane::getMaxOccupancy()
- {
- return maxOccupancy;
- }
- /////////////////////////////
- #include "Rocket.h"
- Rocket::Rocket()
- {
- cargoLimit = 0;
- numOfEngines = 0;
- isSelfLanding = false;
- }
- Rocket::Rocket(double c, int en, bool s, int w, double t, Engine *e)
- {
- cargoLimit = c;
- numOfEngines = en;
- isSelfLanding = s;
- numOfWheels = w;
- topSpeed = t;
- type = *e;
- }
- Rocket::~Rocket()
- {
- }
- void Rocket::print()
- {
- }
- void Rocket::setCargoLimit(double c)
- {
- cargoLimit = c;
- }
- void Rocket::setNumOfEngines(int en)
- {
- numOfEngines = en;
- }
- void Rocket::setIsSelfLanding(bool s)
- {
- isSelfLanding = s;
- }
- double Rocket::getCargoLimit()
- {
- return cargoLimit;
- }
- int Rocket::getNumOfEngines()
- {
- return numOfEngines;
- }
- bool Rocket::getIsSelfLanding()
- {
- return isSelfLanding;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement