[ADD] constructors

This commit is contained in:
Sem van der Hoeven
2020-12-14 11:16:40 +01:00
parent dec62e8b9a
commit 64c8b0591a
3 changed files with 27 additions and 6 deletions

View File

@@ -5,6 +5,11 @@ public class Coupon {
private String code;
private String reward;
public Coupon(String code, String reward) {
this.code = code;
this.reward = reward;
}
public String getCode() {
return code;
}