class outerClass { // defining anonymous class object1 = new Type(parameterList) { // body of the anonymous class }; }
(par1, par2, ...) -> {do...}