I wonder why my inner class of another inner class is able to use all of its heirloom internally;
but can't access any of it when requested so externally:
but can't access any of it when requested so externally:
void setup() { noLoop(); final Outer a = new Outer(); final Outer.Inner aa = a.new Inner(); println(aa); //aa.start(); // can't invoke Thread's start() from Outer.Inner println(aa); exit(); } class Outer extends Thread { class Inner extends PVector { { x = getId(); // Thread's method y = getPriority(); // Thread's method z = 4*atan(1); // PApplet's method } void run() { sub(20, 10, -5); // PVector's method } } }
- Internally it behaves as PVector + Thread + PApplet.
- Externally as a PVector only!