Originally posted by Frank Carver:
For a more detailed answer you'll need to list the fields you have so far for us.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by k Oyedeji:
The fields i have so far are as follows:
private String SNAME;
private String FNAME;
private String addressline1;
private String addressline2;
private int user_id;
private String town;
private String postcode;
private boolean police_checked;
private boolean active;
private boolean subscription_expire;
private String our_email;
private String email;
private Date last_login;
private int views;
private String info;
private String password;
All intend to do with them behaviour wise is either set them or retrieve them.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by Frank Carver:
I agree with Ilja about the behaviour issue. I also think that you should reconsider how you represent names and addresses. Ask yourself the following kind of questions:
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by Wilfried LAURENT:
"Agile Software Development"'s author is Alistair Cockburn, not R.C Martin.
W.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by k Oyedeji:
Guys
Thanks for the replies. They've really helped me since i tend to look at objects and what they contain when really i should be looking at the
behvaiour i need. For example i will need to validate a password but i would have done this outside the object by retreiving the password and then doing a comparison. Finally what resources would you guys recommend for learning more about OO?
Thanks
Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
Hey, check out my mega multi devastator cannon. It's wicked. It makes this tiny ad look weak:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|