Look into the following code:
public class ClassA {
private boolean ClassAattr = false;
public ClassA() {
ClassAHandler handler = new Cl
there is nothing wrong with the code you pasted, however you can use a non static inner class to make things (arguably) cleaner:
public class ClassA {
private boolean ClassAattr = false;
public ClassA() {
ClassAHandler handler = new ClassAHandler();
}
class ClassAHandler extends GeneralHandler {
// magically sees the instantiating ClassA members and methods
}
}