Anonymous classes | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Anonymous classes

Are we able to change every class within another method, therefore making all classes anonymous classes?

9th Feb 2017, 9:44 AM
Rizbir Khan
Rizbir Khan - avatar
1 Answer
+ 4
There must be at least one class, which contains the method which contains all of your anonymous classes ;) You can't do that if you need to declare and use a new class.
13th Feb 2017, 4:12 PM
Tamás Barta
Tamás Barta - avatar