-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStock.java
More file actions
33 lines (26 loc) · 698 Bytes
/
Copy pathStock.java
File metadata and controls
33 lines (26 loc) · 698 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
public abstract class Stock {
// instance variables - replace the example below with your own
private String company;
String symbol;
private double value;
public Stock(String company, String symbol, double value) {
this.company = company;
this.symbol = symbol;
this.value = value;
}
public String getName() {
return company;
}
public String getSymbol() {
return symbol;
}
public double getValue() {
return value;
}
public void setPrice(double vvalue) {
value = vvalue;
}
public String getEvent(String randomCompany) {
return randomCompany;
}
}