Help for this page

Select Code to Download


  1. or download this
    private int foo;
    public int getFoo() {
    ...
    public void setFoo(int foo) {
       this.foo=foo;
    }
    
  2. or download this
    Here the methods have meaning to the object
    
    ...
    and we aren't really OO
    
    thing.setX(thing.getX()+1,thing.getY()-1)