Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #include "Vessel.h"
- class Submarine:public Vessel
- {
- private:
- int _maxDive;
- int _submergedSpeed;
- float _submergedDisplacement;
- public:
- Submarine(int acousticSignature[4], int shipLength, int maxSpeed, char shipName, int maxRange, float maxDisplacement, int noCrew, int maxDrive, int _SubmergedSpeed, float _submergedDisplacement);
- int getMaxDive();
- int getSubmergedSpeed();
- float getSubmergedDisplacement();
- };
- #include "Submarine.h"
- Submarine::Submarine(int acousticSignature[4], int shipLength, int maxSpeed, char shipName, int maxRange, float maxDisplacement, int noCrew, int maxDrive, int _SubmergedSpeed, float _submergedDisplacement)
- :Vessel(acousticSignature[4], shipLength, maxSpeed, shipName, maxRange, maxDisplacement, noCrew)
- {
- }
Add Comment
Please, Sign In to add comment