8. วัตถุสิ่งของ

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.

 
รหัสที่ 8-37  ตัวอย่างการใช้ final กับพารามิเตอร์และตัวแปรประจำคลาส
public class Card {
  public static final int WIDTH = 50, HEIGHT = 50;
  ...
  private void draw(final int color, final boolean showNumber) {
    ...
  }
©2009 S.Prasitjutrakul