Created
April 16, 2012 11:34
-
-
Save RobGThai/2397964 to your computer and use it in GitHub Desktop.
Foo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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