-
Notifications
You must be signed in to change notification settings - Fork 4
/
TransportT3.h
63 lines (53 loc) · 1.13 KB
/
TransportT3.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
/** Transport class
*
* #include "TransportT3.h" <BR>
* -llib
*
*/
#ifndef TRANSPORT_H
#define TRANSPORT_H
// SYSTEM INCLUDES
#include<iostream>
// Transport class definition
class Transport {
public:
// LIFECYCLE
/** Default + Overloaded constructor.
*/
Transport(int = 0, int = 0, int = 0);
// Use compiler-generated copy constructor, assignment, and destructor.
// Transport(const Transport&);
// Transport& operator=(const Transport&);
// ~Transport();
// OPERATIONS
/** function that carries goods.
*
* @param void
*
* @return void
*/
void CarryGoods();
// ACCESS
// setters
void SetWeight(int = 0);
void SetCapacity(int = 0);
void SetSpeed(int = 0);
void SetTransport(int = 0, int = 0, int = 0);
/**
# @overload void SetTransport(const Transport& aTransport);
*/
void SetTransport(const Transport& aTransport);
// getters
int GetWeight()const;
int GetCapacity()const;
int GetSpeed()const;
const Transport& GetTransport()const;
private:
// DATA MEMBERS
int mWeight;
int mCapacity;
int mSpeed;
};
// end class Transport
#endif
// _TRANSPORT_H_