Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class TT {
- private static int OBJECT_COUNT = 0;
- public int id;
- public final String name;
- {
- OBJECT_COUNT++;
- id = OBJECT_COUNT;
- }
- public TT(String name) {
- this.name = name;
- }
- public TT() {
- this("unnamed_TT");
- }
- }
Add Comment
Please, Sign In to add comment