abstract class with set and get methods

hi

how to write set and get methods(plain methods) in an abstartc class

ex: setUsername(String)

String getUsername()

and one class is extending this abstract class and same methods existing in that sub class also..... how to write......plz provide some ideas

am new to programming....

asap

thnx in advance

[360 byte] By [misterraoa] at [2007-10-2 6:39:57]
# 1
Please describe your problem in more words.If you are not comfortable with the core Java concepts, refer to the Java tutorial.
aniseeda at 2007-7-16 13:48:12 > top of Java-index,Administration Tools,Sun Connection...
# 2

yes... as i told u.... i am new to coding......

and my problem is ..... i have 2 classes one is abstract class without abstract methods.. and another class is extending abstract class.....

in abstract class i have 2 methods...one is setusername(string) and getusername() ..... how to write these two methods.... in abstract class i have private variables username...... when user logins ..... i need to catch the user name and i need to validate with my oracle database and i need to identify the role of that user and based on role of that user i need to direct him to appropriate jsp page.......

for that now i am writing business process classes..... the above mentioned two classes are from business process.....

could u help me now

thnx in advance

misterraoa at 2007-7-16 13:48:12 > top of Java-index,Administration Tools,Sun Connection...
# 3
i have 2 classes one is> s abstract class without abstract methods.. then why have decided to make it abstract?
kilyasa at 2007-7-16 13:48:12 > top of Java-index,Administration Tools,Sun Connection...