Originally posted by Tian Zhang:
hi there!
is there a way to force implemented classes to override methods inherent in all object such as toString() etc... i.e.:
is still valid, i suppose as toString() is already extended from Object.
thanks!
tian
[ November 14, 2005: Message edited by: Tian Zhang ]
To answer your question, "all classes implicitly override toString()". You are stumbling upon an unfortunate defect in the language/API. What you might want to do is redefine your own abstraction, but you lose some of the functionality in the core API. You can workaround this with an adapter.