does anonymous class work with constructor? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

does anonymous class work with constructor?

5th Jul 2016, 3:34 PM
Iqbal
3 Answers
+ 1
constructor works first and then anonymous class.
10th Jul 2016, 9:07 AM
Anoop E
Anoop E - avatar
+ 1
yes it does. You can override a constructor method in the same way that you would any other. simply put @override and copy paste the entire constructor code (then change the output as you desire)
21st Jul 2016, 9:53 PM
sam DD
sam DD - avatar
+ 1
Yes it does
11th Sep 2016, 4:22 PM
violet