Okay, that makes sense. I generally try to do that anyway, as far as return
What I don't understand is how you could get around getters and setters for
something like an int. The only production coding I've done in Java is an
order entry process.
What I did was create a class to represent a customer, a class to represent
an address, and an interface for an order. I then created a CustomerOrder
class that implemented the Order interface. But, if the order quantity is an
integer field, is that the instance where a getter and setter is okay? I
assume some of this opinion, but I'm curious to see how others handle this.
James R. Perkins
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2022 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.