The difference in Python OOP between:

  • instance method
  • class method
  • static method

visually explained using ๐—บ๐—ฒ๐—บ๐—ผ๐—ฟ๐˜†_๐—ด๐—ฟ๐—ฎ๐—ฝ๐—ต:

you are viewing a single comment's thread
view the rest of the comments
[โ€“] [S] 1 point 4 months ago

Same thing in Python, double underscore prefix triggers "name mangling". There are issues that can pop up when using it if not aware.

  • source
  • parent