Name Mangling Python

Subscribers:
50,600
Published on ● Video Link: https://www.youtube.com/watch?v=6cvFzLB6hbA



Duration: 4:35
924 views
26


Data hiding with private fields/methods using name mangling in Python. In Python, there is no true dating hiding with private fields/methods; however you can replicate the behavior using name mangling. Name mangling causes the attribute with double underscores to become _ClassName__ attribute internally within Python. Therefore, you can still access these methods by accessing the fields/methods via _ClassName__ attribute.

https://github.com/ImKennyYip/Data-Structures-Algorithms

Python Playlist:
https://youtube.com/playlist?list=PLnKe36F30Y4bcRomKi02sP9NR27KnBqCK

Subscribe for more coding tutorials 😄!







Tags:
name mangling in python
private methods in python
private fields in python
private declaration in python
data hiding in python
does python have private fields
does python have private fields and methods
does python support private fields
python public and private fields
python data hiding
python object oriented programming
how to declare private in python
python classes private
python for beginners
python encapsulation
python
name mangling python
name mangling