-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathGreenCard.java
More file actions
51 lines (37 loc) · 933 Bytes
/
GreenCard.java
File metadata and controls
51 lines (37 loc) · 933 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
public class GreenCard {
private String party;
private int capitalTax;
private int revenueTax;
private int interest;
public GreenCard(String party, int capitalTax, int revenueTax, int interest) {
super();
this.party = party;
this.capitalTax = capitalTax;
this.revenueTax = revenueTax;
this.interest = interest;
}
public String getparty(){ //Getters
return party;
}
public int getcapitalTax(){
return capitalTax;
}
public int getrevenueTax(){
return revenueTax;
}
public int getinterest(){
return interest;
}
public void setparty(String Party){ //Setters
this.party = Party;
}
public void setcapitalTax(int CapitalTax){
this.capitalTax = CapitalTax;
}
public void setrevenueTax(int RevenueTax){
this.revenueTax = RevenueTax;
}
public void setinterest(int Interest){
this.interest = Interest;
}
}