>so although the second class has a lot more code in it, it also allows
>me to change what happens behinds the scenes (i.e. variable names) more
>easily. for example the customer will always have a "first_name" but i
>may not always want to use $fname to represent it within the class.
>this revised class, in my limited experience, seems to be much more oo
>than my current class.
>seeing as how this email turned out longer than i had planned i will
>only be asking one question at this time. in fact i can't even remember
>what my second question was anyway. :)
>any and all comments are appreciated!
>thanks,
>chris.

Hi Chris,

the second approach is definitely much, much better and the right way to go.
But what exactly is your QUESTION?
One personal suggestion: you could directly put the code from
initialize_customer() into the constructor.

Regards,

Torsten Roehr

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to