Name Mangling Python
Channel:
Subscribers:
50,600
Published on ● Video Link: https://www.youtube.com/watch?v=6cvFzLB6hbA
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 😄!
Other Videos By Kenny Yip Coding
2022-02-04 | How to Build Sudoku JavaScript Tutorial |
2022-01-30 | [메이플] I Recreated Maplestory Match Cards 메이플스토리 같은 그림 찾기 (HTML, CSS, JavaScript, node.js) |
2022-01-29 | Build a Wordle Clone in JavaScript HTML CSS |
2022-01-29 | Wordle Clone Demo (HTML, CSS, JavaScript) - tutorial in description! |
2021-11-14 | [메이플] I Recreated Maplestory Omok Minigame 메이플스토리 오목 (HTML, CSS, JavaScript, node.js) |
2021-06-01 | Python Number of Factors |
2021-06-01 | Run Time Complexity |
2021-05-31 | Run Time Python |
2021-05-19 | How to set up Python on Visual Studio Code in 2021 |
2021-05-16 | C++ Practice Problems |
2021-05-16 | Name Mangling Python |
2021-05-11 | Import Files in Python |
2021-05-11 | Sorting Custom Objects in Python |
2021-05-06 | mul vs rmul python |
2021-05-04 | C++ User Input |
2021-05-04 | C++ Ternary Operator |
2021-05-02 | C++ Conditional Statement |
2021-05-02 | C++ Logic Operator |
2021-05-02 | Increment and Decrement in C++ |
2021-05-01 | C++ Type Casting |
2021-05-01 | Arithmetic Operators in C++ |
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