On 5/10/06, Barney Boisvert <[EMAIL PROTECTED]> wrote:
0.5.0 Alpha - the latest build.  Didn't want to go from source for a
first pass, but would be happy to if needed, and I can figure out how
to do a CVS external in an SVN working directory.

You need to test against the CVS version - it's *very* different to 0.5.0.

> c) why you have CFCs that don't have init() methods
need anything else, so they inherit the init() method from the base

I don't think that is very good practice. I think you *should* have an
explicit init() in each of the derived classes (that just calls
super.init() and passes the arguments up the chain).

You talked about coupling yet, your derived classes are already
tightly coupled to the base class - inheritance is the tightest
possible coupling there is in OO design! Whatever initializes your
classes is tightly coupled to the constructor API - it doesn't matter
whether it is inherited or not, the coupling is to the constructor API
of the class. By having an explicit init() in derived classes, you can
actually protect users of your classes from changes to the base class
because you control the construction API.
--
Sean A Corfield -- http://corfield.org/
Got frameworks?

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

Reply via email to