| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
If some maintainer can't figure out that moveBy() should be implemented by each inner class, they probably shouldn't be doing maintenance.
There would be doc-comments concisely explaining this abstract-to-anonymous relationship, too.
If a do-nothing method is insufficient, throwing a RuntimeException in the superclass's default method body prevents the method from being used in practice, yet avoids the 'abstract' qualifier. I've used this approach before.
Defensive programming of a different sort.
| References: | |
| >Re: problem with compiling abstract class with CW (MAC OS X) (From: Greg Guerin <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.