aboutsummaryrefslogtreecommitdiff
path: root/stock.java
diff options
context:
space:
mode:
Diffstat (limited to 'stock.java')
-rw-r--r--stock.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/stock.java b/stock.java
new file mode 100644
index 0000000..9a15628
--- /dev/null
+++ b/stock.java
@@ -0,0 +1,18 @@
+package stocks;
+
+public class Stock {
+ int price, value;
+ String ticker;
+
+ public Stock() {
+ price = 0;
+ value = 0;
+ ticker = "";
+ }
+
+ public Stock(int price, int value, String ticker) {
+ this.price = price;
+ this.value = value;
+ this.ticker = ticker;
+ }
+}