you must have "FLOOR ,DIRECTION, status" attribute in your elevator class, then getXXX();in my opinion, class2 needn't know these information, just tell class1 to do what. class1 determine it.
macsym(日进斗斤)
(#375668@0) Last Updated: 2002-2-21 This post has been archived. It cannot be replied.