- -
UPV
 

Encasulaption and visibility

In this video encapsulation in object-oriented programming is explained. Encapsulation hides elements into different levels of structure, allowing for better organization and control. The video demonstrates how to use underscore and double underscore techniques to make attributes and methods private or not, depending on whether the user should modify their values or access them directly. It also shows how getter and setter methods can be used to perform more complicated operations, such as checking for valid input values. Additionally, the video discusses private methods and attributes in Python, including those used for binary math and logic operations, and how they can be overridden to change the behavior of a class.


EMAS upv