Skip to content

Commit

Permalink
Added Share class
Browse files Browse the repository at this point in the history
  • Loading branch information
elisab3 committed Feb 24, 2026
1 parent bc38441 commit ce3580d
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions src/main/java/Share.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import java.math.BigDecimal;

public class Share {

private final Stock stock;
private final BigDecimal quantity;
private final BigDecimal purchasePrice;

public Share(Stock stock, BigDecimal quantity, BigDecimal purchasePrice) {
this.stock = stock;
this.quantity = quantity;
this.purchasePrice = purchasePrice;
}

public Stock getStock() {
return stock;
}

public BigDecimal getQuantity() {
return quantity;
}

public BigDecimal getPurchasePrice() {
return purchasePrice;
}

}
Binary file added target/classes/Share.class
Binary file not shown.

0 comments on commit ce3580d

Please sign in to comment.