|
Thorbjørn,Thank you. You are most welcome :)
As always you have great advice. The interface makes more sense to me now. I
basically knew what they did and I've used them in examples, but I failed to
see the use of them in a whole. I like the contract concept though. That
makes a lot of sense.
As far as the comments go. They make a lot of sense too. I was struggling onNo problem. All programs were small once.
the concept of creating too many objects vs. creating the objects needed.
And just an FYI I'm not really migrating anything, just trying to learn is
all.
I do have one last question I forgot to ask and that's when to call a classThe Bean concept has gone through a lot of turmoil since it was invented to provide a way to handle a class inside a GUI, and then twisted to provide Enterprise JavaBeans (which is actually quite a different story) and then in disgust reinvented as POJO's. I will suggest you do Plain Old Java Objects since it is not hard:
a bean. For example I will use the Customer.class again. It contains an
Address.class which basically just has address lines, city, state, zip and
country and getters and setters for each. Should this be named AddressBean
and since the customer is just customer information with getters and setters
should it be CustomerBean?
As an Amazon Associate we earn from qualifying purchases.
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.