[Newbies] OOP Question - adding methods to core classes
johnson at cs.uiuc.edu
Sun Oct 31 03:49:37 UTC 2010
On Sat, Oct 30, 2010 at 8:33 PM, Sean P. DeNigris <sean at clipperadams.com>wrote:
> I was thinking how beautiful this code could be if each class had it's own
> encode method, like:
> In method protocol *xmlrpc
Yes, this is the Smalltalk way.
When you add a method to existing classes, you want to try to avoid name
clashes. Pick a name that nobody else is likely to use. encodeForXmlRpc
is a good name for that reason.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Beginners