This discussion is archived
4 Replies Latest reply: Feb 11, 2004 11:24 PM by 807582 RSS

Object and class relationship

807582 Newbie
Currently Being Moderated
first of all, I have a class called appointment that have get variable(such as Time, Date and STring)method in it, and I have a second class called ListArrayBased. Inside, I have a method that can return an Object.

so
Appointment abc = new Appointment(Time, Date, String)
is ok...

then
ListArrayBased def = new ListArrayBased()
def.insertobject(abc)
ok...here is the question...how can I get the variable/things inside the object
I can't go for...object.getTime() inside the ListArrayBased class to retrieve the Time variable inside the object...what can I do...