This is just an example from the processing package folder, which I'm sure everyone is familiar with. I've studied the stack flow and came up with a few questions:
1.) In the subclass Ring, where is the constructor? What looks like a constructor is void start() method (in bold) Shouldn't a constructor hold the very class name? (In this case, Ring() { )
2.) The above said results in the sudden call on method start() in the superclass EggRing's constructor, instead of setting a new startup object there. (In red)
lass Egg {
float x, y; // X-coordinate, y-coordinate
float tilt; // Left and right angle offset
float angle; // Used to define the tilt
float scalar; // Height of the egg
// Constructor
Egg(int xpos, int ypos, float t, float s) {
x = xpos;
y = ypos;
tilt = t;
scalar = s / 100.0;
}