×

Loading...

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.

Report