-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCustomerApplication.java
More file actions
56 lines (52 loc) · 1.47 KB
/
Copy pathCustomerApplication.java
File metadata and controls
56 lines (52 loc) · 1.47 KB
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
54
55
56
/**
* class customerApplication.
* This class controls all customer
* application for bank services.
*
* @author Daniel Ambrose & Starfranklyn Olivers
* @version v1.1 10 December, 2020.
*/
public class CustomerApplication
{
// instance variables - replace the example below with your own
private long applicationId;
private String applicationType;
private String comment;
private String applicationStatusComment;
private boolean outstanding;
/**
* Constructor for objects of class customerApplications
*/
public CustomerApplication(long applicationIdIn, String applicationTypeIn, String commentIn)
{
applicationId = applicationIdIn;
applicationType = applicationTypeIn;
comment = commentIn;
applicationStatusComment = "";
outstanding = true;
}
public long getApplicationId()
{
return applicationId;
}
/**
* Enter a comment for this Customer Application.
*/
public void setComment(String comment)
{
this.applicationStatusComment = comment;
outstanding = false;
}
/**
* Return the comment for this Customer Application.
*/
public String getStatus()
{
return "Manager's Comment " + applicationStatusComment + "is outstanding" + outstanding;
}
public void list() {
if (outstanding){
System.out.println("Application " + applicationType + " is outstanding");
}
}
}