I am (and I know almost every one of you is) thinking of an interface DataInterface.java which defines all the methods in Data.java, but I have a question: only public accessor is allowed in methods defined in the interface, and the methods implemented in the class should not have a weaker access than those in the interface. Then what should I do with those protected or private methods in Data.java. I doubt if we can change the signature of the given methods. Thanks. Cathy
posted 15 years ago
DataInterface only needs to define the public methods of the Data class.
SCJP, SCJD, SCEA 5 "Any sufficiently analyzed magic is indistinguishable from science!" Agatha Heterodyne (Girl Genius)