Anonymous classes | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
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 ответ
+ 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