9. สร้างใหม่จากเก่า

The Camtasia Studio video content presented here requires JavaScript to be enabled and the latest version of the Macromedia Flash Player. If you are you using a browser with JavaScript disabled please enable it now. Otherwise, please update your version of the free Flash Player by downloading here.

 
รหัสที่ 9-37  อินเทอร์เฟซ PowerSaving (เขียนแบบย่อ)
public interface PowerSaving {
  int MIN = 1;
  int MAX = 5;

  void sleep();
  void wakeup();
  boolean isSleeping();
}
©2009 S.Prasitjutrakul