Lowest price ever! Learn Generative AI for 48% less!
Get my discount+ 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
+ 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.
+ 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.