Hi list... I have a superclass, let's say it's Dog. Then, I have some extensions of Dog, like so: Schnauzer extends Dog Poodle extends Dog
In the Dog constructor, I want to prevent a Dog from being instanced directly, but when I include this line in the superclass constructor: throw new IllegalOperationError("Class must be instanced through one of Dog's subclasses."); ...all the base class instances throw the error. How best to prevent the superclass from being instanced on its own? Thanks, - Michael M. _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders