/Users/johnr/Desktop/IA_14_-_Stage_P_Upload_all_2021-04-08/IBCompSciInternalAssessment Lara April 6th/src/ibcompsciinternalassessment/NonEarmarkedContribution.java |
1
2
3
4
5
6 package ibcompsciinternalassessment;
7
8
9
10 @author
11
12 public class NonEarmarkedContribution extends Contribution{
13
14 public NonEarmarkedContribution(String donorName, String amountEstimated, DateSelfMade dueDiligence, String dDComments, DateSelfMade budgetYear, String bYComments,
15 boolean isRetroactivityAccepted, String retroComments, String reportingRequirements, String visibilityRequirements, String otherComments) {
16 super(donorName, amountEstimated, dueDiligence, dDComments, budgetYear, bYComments, isRetroactivityAccepted, retroComments, reportingRequirements, visibilityRequirements, otherComments);
17 setNumberOfNonEarmarkedForms(getNumberOfNonEarmarkedForms() +1);
18 }
19
20 public NonEarmarkedContribution() {
21 }
22
23 @Override
24 public Country getGeoInterest(){
25 return null;
26 }
27 @Override
28 public String getGeoInterestName(){
29 return "non-earmarked contribution";
30 }
31 @Override
32 public String getThematicInterest() {
33 return "non-earmarked contribution";
34 }
35 @Override
36 public String getGeoComments(){
37 return "non-earmarked contribution";
38 }
39
40 @Override
41 public void setGeoInterest(Country geoInterest) {
42 setGeoInterestName("non-earmarked contribution");
43 }
44 @Override
45 public void setGeoInterestName(String thematicInterest){
46
47 }
48 @Override
49 public void setThematicInterest(String thematicInterest) {
50
51 }
52 @Override
53 public void setGeoComments(String thematicInterest) {
54
55 }
56
57
58
59 }
60