4 Replies Latest reply: Feb 12, 2004 1:24 AM by 807582 RSS

    Object and class relationship

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