-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathParkingLot.java
More file actions
40 lines (38 loc) · 875 Bytes
/
ParkingLot.java
File metadata and controls
40 lines (38 loc) · 875 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
/**
* Write a description of class ParkingLot here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class ParkingLot
{
// instance variables - replace the example below with your own
private String name;
private int space;
private Log log;
/**
* Constructor for objects of class lot
*/
public ParkingLot(String name,int space)
{
// initialise instance variables
this.name= name;
this.space=space;
}
public int Addspace()
{
return 0;
}
public int reduceSpace()
{
return 0;
}
public void enter(String parkinglotuse,String timeplentry)
{
log.setplEnter(parkinglotuse,timeplentry);
}
public void exit(String timeplexit)
{
log.setplExit(timeplexit);
}
}