The original detailed article are read here How to use Encapsulation and Data Abstraction In Python
Encapsulation is one of the fundamental concepts in object-oriented programming (OOP). It describes the idea of wrapping data and the methods that work on data within one unit. This puts restrictions on accessing variables and methods directly and can prevent the accidental modification of data. To prevent accidental change, an object’s variable can only be changed by an object’s method. Those types of variables are known as private variable.
Resource :
https://pythonslearning.com/how-to-use-encapsulation-and-data-abstraction-in-python.html
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)