Referencing static fields of the subclass of an abstract class in the abstract class's method body
<p>Given the folowing, in pseudocode</p>

<pre><code>abstract public class Bug {
    private static int BREEDTIME;

    public void breed() {
    if (this.age % this.BREEDTIME) {
        world.setAt(new this.class(newX, newY, this.world);
    }
    }
}

public class Ant extends Bug {
    private static int BREEDTIME = 3;
}

public class Doodlebug extends Bug {
    private static int BREEDTIME = 8;
}
</code></pre>

<p>Is there a way to define the breed() method such that it depends on the BREEDTIME of whatever subclass is calling it? Each subclass of <code>bug</code> is guaranteed to have BREEDTIME initialized.</p>

<p>Also, Ants should breed other Ants, so the constructor called inside breed() has to be the constructor of the type of the subclass that is calling breed().</p>

<p>Am I barking up the wrong tree here?</p>
