Re: suggestions for newbee
Artem Gr <[email protected]> Wed, 06 Jul 2005 09:40:39 +0400
| Newsgroups | gmane.comp.lang.nice.general |
|---|---|
| Message-ID | <[email protected]> |
> I forgot some note about 'class addon'. If I want/need to add some > method to Worker in another project/lib, then in the second project I > create a file Worker.addon.nice in the same directory hierarchy > (package) as the orginal Worker.nice. Like this it's easier tho know > where is an implementation if you know the target class. > > Avantage : no inside AND ouside method definition This will lead to confusion when fields can be declared and when not. We can add methods to existing class, but not fields. Therefore it is sound to have a single class definition. Anyway, methods definition outside class is cleaner: it separates instance fields definitions from methods definitions, and having instance fields definitions separated is very pleasant. ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click