× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Okay, that makes sense. I generally try to do that anyway, as far as return
the interface.

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 thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 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 [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.