In Java, programming variables can be initialized before calling a constructor.
public class StockGraph extends JPanel {
public boolean runUpdates = true;
double TickMarks = 18;
double MiddleTick = TickMarks / 2;
double PriceInterval = 5;
double StockMaximum;
double StockMinimum;
Random testStockValue;
DecimalFormat df = new DecimalFormat("#.000");
LinearEquation StockPriceY;
public StockGraph(int AreaInterval, int Time, int StockID) {
}
}
What are the properties of these variables?
Does MiddleTick dynamically change when TickMarks change?
When do these variables get initialized?
In particular, public boolean runUpdates = true;. As no initialization is needed because one can call StockGraph.runUpdates to access the variable?