Skip to content

Commit

Permalink
Merge pull request #28 from einaskoi/per/share
Browse files Browse the repository at this point in the history
propper intendation on
  • Loading branch information
einaskoi authored Feb 23, 2026
2 parents 0c8e4ea + 36f5ed1 commit 8067564
Showing 1 changed file with 20 additions and 11 deletions.
31 changes: 20 additions & 11 deletions src/main/java/edu/ntnu/idi/idatt2003/gruppe42/Model/Share.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,25 @@
import java.math.BigDecimal;

public class Share {
private Stock stock;
private BigDecimal quantity;
private BigDecimal purchasePrice;
private Stock stock;
private BigDecimal quantity;
private BigDecimal purchasePrice;

public void 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; }
public void 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;
}
}

0 comments on commit 8067564

Please sign in to comment.