Guest User

Untitled

a guest
Jun 23rd, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.77 KB | None | 0 0
  1. #pragma once
  2. #include "Vessel.h"
  3.  
  4. class Submarine:public Vessel
  5. {
  6. private:
  7.     int _maxDive;
  8.     int _submergedSpeed;
  9.     float _submergedDisplacement;
  10. public:
  11.     Submarine(int acousticSignature[4], int shipLength, int maxSpeed, char shipName, int maxRange, float maxDisplacement, int noCrew, int maxDrive, int _SubmergedSpeed, float _submergedDisplacement);
  12.     int getMaxDive();
  13.     int getSubmergedSpeed();
  14.     float getSubmergedDisplacement();
  15. };
  16.  
  17. #include "Submarine.h"
  18.  
  19. Submarine::Submarine(int acousticSignature[4], int shipLength, int maxSpeed, char shipName, int maxRange, float maxDisplacement, int noCrew, int maxDrive, int _SubmergedSpeed, float _submergedDisplacement)
  20.     :Vessel(acousticSignature[4], shipLength, maxSpeed, shipName, maxRange, maxDisplacement, noCrew)
  21. {
  22.  
  23. }
Add Comment
Please, Sign In to add comment