Skip to content

Commit

Permalink
Initialise Transaction class with description, amount and category
Browse files Browse the repository at this point in the history
  • Loading branch information
ShyamKrishna33 committed Mar 12, 2024
1 parent 1074100 commit bd3e236
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/main/java/transactions/Transaction.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
package transactions;

public class Transaction {
private String description;
private float amount;
private String category;

public Transaction(String description, float amount, String category) {
this.description = description;
this.amount = amount;
this.category = category;
}
}

0 comments on commit bd3e236

Please sign in to comment.