-
Notifications
You must be signed in to change notification settings - Fork 0
/
Car.h
37 lines (30 loc) · 793 Bytes
/
Car.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
//Joel Asante
#include<iostream>
#include<string>
using namespace std;
class Car
{
private:
int id;
string make;
string model;
string color;
public:
//default Constructor
Car();
//Overload Constructor
Car(int id, string make, string model, string color);
//getters
int getID();
string getModel();
string getMake();
string getColor();
//setters
void setID(int id);
void setModel(string model);
void setMake(string make);
void setColor(string color);
//overload operator for input and outpur
friend ostream& operator << (ostream& out, const Car& c);
friend istream& operator >> (istream& in, Car& c);
};