I know you’re doing your best to help me understand, but it’s not coming through.
Where is appCls coming from? Is that comparable to what I’m using: final PApplet PAPPLET = this;?
If I execute your latest code I get the Inner class with an empty and a string constructor. Great.
But when I replace “Inner” with “AbstractExp” – which I assume is what I need to do, since it’s the String name of the class I want to instantiate – I get the ClassCastException again.
There’s a step I’m not understanding… whether it’s due to my own limitations or your pedagogical style or a combination of both I can’t answer…