Re: accessor generation???
Re: accessor generation???
- Subject: Re: accessor generation???
- From: Phillip Mills <email@hidden>
- Date: Sun, 7 Jul 2002 08:24:14 -0400
On Saturday, July 6, 2002, at 08:40 AM, Erik J. Barzeski wrote:
Say I've got Person.h/m. Guess what? Pretty accessor-heavy. Persons are
objects - they're models of real-world people (at least in this
example).
Without knowing the application, it's hard to generalize...but that
doesn't always stop me. :-)
There may be cases where a Person is primarily a data container, but my
first expectation would be that a Person would be primarily defined by
behavior and therefore would not be accessor-heavy -- at least at the
design stage.
Actually, my *real* first expectation would be that 'Person' would be an
abstract base class, but that's a different subject. Or, maybe it is
on-topic in the sense that base classes often define behavior without
data to support an implementation. (i.e. No data, no accessors.)
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.