I want to write an abstract class with abstract methods etc. but also two abstract inner classes. I am not sure how to. Is it possible? could I use
private abstract class
fin
Finlay Thompson
Re: abstract inner classes
By using "abstract inner classes," I guess you mean that inside of one abstract class, you wish to reference 2 other abstract classes. That is not possible... to access the 2 "abstract inner classes" you would have to instanciate them which is not allowed for abstract classes ... there are two solutions ...
1) you could subclass these 2 "abstract inner classes" and fill out the abstract methods of those classes .. or,
2) you could declare the methods/variables that you wish to access in the 2 abstract inner classes as "static" ... static methods/variables can be accessed without the class being instanced
Hope this helps....
Mike