-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpolice.cpp
More file actions
40 lines (31 loc) · 710 Bytes
/
police.cpp
File metadata and controls
40 lines (31 loc) · 710 Bytes
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
/*
#include "police.h"
Police::Police() { //default constructor
horz_x=70;
vert_y=70;
}
Police::Police(int horz_x, int vert_y) { //paramaterized constructor
this->horz_x=horz_x;
this->vert_y=vert_y;
}
int Police::get_x() { //getter for x
return horz_x;
}
int Police::get_y() { // getter for y
return vert_y;
}
void Police::set_x(int horz_x) { //setter for x
this->horz_x=horz_x;
}
void Police::set_y(int vert_y) { // setter for y
this->vert_y=vert_y;
}
void Police::policeCircle(int x_p, int y_p, int radius_p)
{
circle(x_p, y_p,radius_p);
}
Police::~Police() { //Destructor for constructor Police
horz_x=0;
vert_y=0;
}
*/