Folks, As I understand it, an interface is a set of responsibilities, and an extension is a set of capabilities.
public class TeacherAssistant extends Student implements Teacher {
...
}
The TeacherAssistant *can* goToLunch(), cutClass(), and study(), but the
TeacherAssistant *must* gradePaper(), and takeRoll().
Attached you'll find four components and one test wrapper.
interface.cfc: Contains one empty method that is inaccessible on its own
success.cfc: Successfully implements interface.cfc
failure.cfc: Fails to successfully implement interface.cfc
parent.cfc: Extended by success.cfc and failure.cfc, initializes the
implement() and implements() method
index.cfm: Instantiates the above components and successfully predicts their
reactions to different types of poking.
The main reason I put the implement() and implements() functions (better
names are always accepted) in the parent.cfc was to show that they could be
inherited from the root component.cfc and interfaces are now indeed
possible.
What have I gotten wrong here? I know I haven't touched properties, but
that's because I really haven't done much Java and therefore don't know what
happens to the public, private, and protected members of the implemented
interface.
Feedback?
Thanks.
ecd.
--
Eric C. Davis
Programmer/Analyst I
Georgia Department of Transportation
Office of I.T. Applications
Web Applications Group
404.463.2860.199
[EMAIL PROTECTED]
implementation.zip
Description: Binary data
