Skip to content

Commit

Permalink
class constructor
Browse files Browse the repository at this point in the history
This update is for the class constructor
  • Loading branch information
EspenTinius committed Feb 11, 2026
1 parent ef6d943 commit 7c7adc8
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/main/java/edu/ntnu/idi/idatt2003/g40/mappe/Share.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
package edu.ntnu.idi.idatt2003.g40.mappe;

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

0 comments on commit 7c7adc8

Please sign in to comment.