-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVAP.java
More file actions
43 lines (41 loc) · 905 Bytes
/
VAP.java
File metadata and controls
43 lines (41 loc) · 905 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
41
42
43
/**
* Write a description of class VPA here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class VAP
{
private String LP;//text version of a licences plate number
private int VAP;// vechicle acess pass
/**
* Constructor for objects of class VPA
* by take in the licences plate number and assign a VPA
*/
public VAP(String LP,int VAP)
{ this.LP=LP;
this.VAP= VAP;
}
/**
* get the licences plate number
*/
public String getLP()
{
return LP;
}
/**
* get VPA number
*/
public int getVAP()
{
return VAP;
}
/**
* if licenes plate cannot be read by the system this maunal overide the system
*/
public void overRideSystem(String LP,int VPA)
{
this.LP=LP;
this.VAP= VAP;
}
}