-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVehicle.java
More file actions
53 lines (42 loc) · 1008 Bytes
/
Vehicle.java
File metadata and controls
53 lines (42 loc) · 1008 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
44
45
46
47
48
49
50
51
52
53
import java.util.Scanner;
public class Vehicle
{
public String RegNo;
public String TransmissionCode;
public double Fee;
public double RepeatFee;
public Vehicle()
{
RegNo = null;
TransmissionCode = null;
Fee = 0.00;
RepeatFee = 0.00;
}
public String getRegNo()
{
return RegNo;
}
public String getTransmissionCode()
{
return TransmissionCode;
}
public double getFee()
{
return Fee;
}
public double getRepeatFee()
{
return RepeatFee;
}
public void setAll(String RegNo, String TransmissionCode, double Fee, double RepeatFee)
{
this.RegNo = RegNo;
this.TransmissionCode= TransmissionCode;
this.Fee = Fee;
this.RepeatFee = RepeatFee;
}
public String toString()
{
return ("Vehicle Registration Number :" + RegNo);
}
}