luoxiaobi
V2EX  ›  Java

时间线触发对象和直接触发对象的问题

  •  
  •   luoxiaobi · Sep 7, 2015 · 2812 views
    This topic created in 3937 days ago, the information mentioned may be changed or developed.

    我是一个新手,自学 java,书是《 head firstjava 》 。目前看到了第二章“对象”。看到了书中的举例。想问一个问题如下:

    1.时间线触发对象:
    举例:
    door
    opentime
    closetime
    set opentime ( button-actiontime )
    set closetime ( button-actiontime )
    play ()

    2.直接触发对象
    door
    open
    close
    set open ( button-action )
    set close ( button-action )
    play ()

    我自己想的时间线触发是可行的吗?
    求问各位老司机。大学狗,上学期上了网页制作选修课,因为兴趣学习编程。

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   856 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 21:13 · PVG 05:13 · LAX 14:13 · JFK 17:13
    ♥ Do have faith in what you're doing.