Skip to content

Instantly share code, notes, and snippets.

@RobGThai
Created April 16, 2012 11:34
Show Gist options
  • Save RobGThai/2397964 to your computer and use it in GitHub Desktop.
Save RobGThai/2397964 to your computer and use it in GitHub Desktop.
Foo
public class Foo{
private long id;
private int order;
private String name;
/***
* Simple constructor
***/
public Foo(){
this.id = 1;
this.order = 1;
this.name = "Foo";
}
public String getName(){
return this.name; // return name of this object.
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment