Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3
~ swim ~ exactly. now, it makes me wonder what kind of thing his is working on, because I've never feel the need to have function like that in my code xd
9th Aug 2019, 11:08 AM
Tanay
Tanay - avatar
+ 2
Gangadhar If you're working with classes and objects than you can also use static initialization block which will only executed when the first object is created.
9th Aug 2019, 3:18 AM
Tanay
Tanay - avatar
+ 2
~ swim ~ That's a really good example! well, still I believe it's completely depended upon what approach we use to implement this kind of functionality.
9th Aug 2019, 8:14 PM
Tanay
Tanay - avatar