-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcrew.h
64 lines (53 loc) · 1.28 KB
/
crew.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
//
// Created by micha on 2021/11/16.
//
#ifndef CREW_H
#define CREW_H
#include "storage.h"
using namespace std;
/**
* @brief new crew class, inherited from the storage class
* Takes in a string which is declared privately
* @see cargo class
*/
class crew : public storage
{
private:
string name;
public:
/**
* @brief Construct a new crew object
* Constructor for crew class
* Initializes string name which is declared privately
* @return nothing
* @param s
*/
crew(string s);
/**
* @brief Destroy the crew object
* Destructor for crew class
* @return nothing
*/
~crew();
/**
* @brief Get the Name object
* Function to get and return the name of the crew member being stored
* @return string
*/
string getName();
/**
* @brief Set the Name object
* Function to set the name of the crew member being stored
* @return nothing
* @param word
*/
void setName(string word);
/**
* @brief cloning function for the crew class
* Uses the prototype design pattern
* @see cargo* clone() - in cargo class
* @return crew*
*/
crew* clone();
};
#endif //CREW_H