|
|
| Come for the quick hacks, stay for the epiphanies. | |
| PerlMonks |
Re: Re: Re: Why get() and set() accessor methods are evilby pg (Canon) |
| on Nov 25, 2003 at 13:07 UTC ( [id://309989]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
You are right, as Java also has primitive types. But on the other hand, in this case, I can choose to return, for example, an ArrayList of Integer. This is much less a problem to languages that have stronger OO support. Update: Thanks BUU for the extension, tie was actually something I thought of. The idea of tie, actually holds some characteristics that OO interface provides.
In Section
Meditations
|
|
||||||||||||||||||||||||||||||