How do you do data abstraction in Python?

By ayush goel in 22 Sep 2023 | 04:11 pm
ayush goel

ayush goel

Student
Posts: 346
Member since: 21 Sep 2023

How do you do data abstraction in Python?

22 Sep 2023 | 04:11 pm
0 Likes
divas goyal

divas goyal

Student
Posts: 453
Member since: 22 Sep 2023

Python does not have traditional access specifiers like private, protected, or public as seen in some other languages. Instead, it relies on naming conventions to indicate the intended access level. Attributes and methods with a single underscore prefix (e.g., _attribute) are considered protected (internal use), and those with a double underscore prefix (e.g., __attribute) are considered private (name mangling is applied).

22 Sep 2023 | 06:26 pm
0 Likes

Report

Please describe about the report short and clearly.