Skip to content

Commit

Permalink
Add getters for variables in Transaction class
Browse files Browse the repository at this point in the history
  • Loading branch information
ShyamKrishna33 committed Mar 12, 2024
1 parent bd3e236 commit 8274224
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/main/java/transactions/Transaction.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,16 @@ public Transaction(String description, float amount, String category) {
this.amount = amount;
this.category = category;
}

public String getDescription() {
return description;
}

public float getAmount() {
return amount;
}

public String getCategory() {
return category;
}
}

0 comments on commit 8274224

Please sign in to comment.