Skip to content

Commit

Permalink
get methods
Browse files Browse the repository at this point in the history
adding the methods for the class
  • Loading branch information
EspenTinius committed Feb 11, 2026
1 parent 7c7adc8 commit 160d1ef
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/main/java/edu/ntnu/idi/idatt2003/g40/mappe/Share.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,16 @@ public Share(Stock stock, BigDecimal quantity, BigDecimal purchasePrice) {
this.quantity = quantity;
this.purchasePrice = purchasePrice;
}

public Stock getStock() {
return stock;
}

public BigDecimal getQuantity() {
return quantity;
}

public BigDecimal getPurchasePrice() {
return purchasePrice;
}
}

0 comments on commit 160d1ef

Please sign in to comment.