I need to define a private abstract class, as I used to do in C#, but this is not possible in Java. How would a Java developer write a construct like below?
public abstract class MyCommand {
public void execute()
{
if (areRequirementsFulfilled())
{
executeInternal();
}
}
private abstract void executeInternal();
private abstract boolean areRequirementsFulfilled();
}
UPDATE:
Forget the question, it is not even possible in C#, I'm a bit dearranged today...