This is the lesson number 09 of the lesson series on Object Oriented Programming (OOP) in Python. It will be a complete course with the aim is to cover almost everything needed in Object Oriented Programming.
We will cover the detail of Data Encapsulation in this lesson. It is a technique to hide data outside the class. With context to Data Encapsulation, there are three types of attributes in a class; Public, Protected and Private.
We will see how these are implemented in Python.
Link to complete playlist:
• Object-Oriented Programming in Python
Lesson Code:
https://github.com/MAN1986/OOP-in-Pyt...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Review Questions of the Lesson
1. What's your opinion on trust-based approach of Python for data encapsulation?
2. On which of the attributes of our student class we should apply data encapsulation?
#OOP #ObjectOrientedProgramming #Python