←
^
→
Designing RMI Applications
Pass Objects As Arguments or Use Primitive Values?
Objects are bigger than primitive values.
Adding another property (data member) to an existing object is easy. The only code that needs modification is the object.
Using the
Money
class seems a bit silly since we end up just sending an integer number of cents.
However, there is an implicit assumption that we are talking about dollars. To make our ATM work across borders we will need the
Money
class.
José M. Vidal
.
15 of 49