What is the meaning of using static before function declaration? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the meaning of using static before function declaration?

16th Sep 2019, 6:12 AM
A 🌟 P Rana 🔯
A 🌟 P Rana 🔯 - avatar
1 Answer
+ 4
I think that static keyword denotes that the function (or the variable) is accessible without need to instantiate object itself from that class
16th Sep 2019, 6:40 AM
Dejan Dozet
Dejan Dozet - avatar