-
Notifications
You must be signed in to change notification settings - Fork 1
/
bike.h
46 lines (43 loc) · 980 Bytes
/
bike.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
#ifndef BIKE_H
#define BIKE_H
#include <iostream>
#include <string>
#include <vector>
#include "custom.h"
#include "accessory.h"
#include "break.h"
#include "steering_wheel.h"
#include "wheel.h"
#include "lamp.h"
#include "comment.h"
using namespace std;
class Bike
{
static int bike_id;
int price;
string type;
string color;
string status;
vector<Comment> *comments;
vector<Accessory*> accessories;
protected:
void setId(int n);
void setColor(string s);
void setType(string t);
public:
Bike(int price,string type,string color,string status,vector<Accessory*> accessories);
Bike();
void PrintBike() const;
void setStatus(string status);
void setPrice(int price);
int getBikeId();
int getPrice();
string getInfo();
void AddComment();
string getType();
string getColor();
string getStatus();
vector<Comment>* getComments();
vector<Accessory *> getAccessories();
};
#endif // BIKE_H