The true mechanism behind private attributes in Python is a feature called _______.

  • abstraction
  • data hiding
  • encapsulation
  • name mangling
Python uses a technique called "name mangling" to make attributes private by adding a prefix to their names.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *