|
From: Brad C. <bc...@vi...> - 2002-02-17 02:53:05
|
At 9:15 PM -0500 2/16/02, Anthony Eden wrote:
>> So I get to write higher level classes like this:
>> new Address(Name n, Street s, City c, Zipcode z, State s);
>> not like this:
>> new Address(String n, String s, String c, ...
>
>Once again, an interesting approach, but doing this:
>
>new Address(String name, String street, String city, String zipCode,
>String state) is just as clear.
Except that if you get the order wrong, you get an compile time error
with the first, a debugging exercise with the latter.
Another possible argument is that the
>first method may result in class overload. Then again, maybe not. :-)
Don't follow that. What's class overload? Never a hint of a problem
with the mybank system at least, which is HUGE.
--
Brad Cox, PhD; bc...@vi... 703 361 4751
o For industrial age goods there were checks and credit cards.
For everything else there is http://virtualschool.edu/mybank
o Java Interactive Learning Environment http://virtualschool.edu/jile
o Java Web Application Architecture: http://virtualschool.edu/jwaa
|