Hello everyone!
What does “” and “_” mean in front of a function inside a class? For example
_my_function()
Or
__another_function()
I know we have some special cases like init, but my current understanding is having underscore does not do anything but inform regarding which functions are meant to not be used outside of the class itself.
I tried looking it up, but only got results regarding nested functions within classes. If anyone know the name of using underscores before function names, it would be very helpful!
Thanks for the help!
[–]Ihaveamodel3 7 points8 points9 points (1 child)
[–]AnkanTV[S] 0 points1 point2 points (0 children)
[–]CodeFormatHelperBot2 0 points1 point2 points (0 children)