class Test { int getInt() { return 5; } String toString() {return "test";} } Test t = new Test(); println(t.getInt()); println(t.toString());