diff --git a/python_basics/class/README.md b/python_basics/class/README.md index a1962b9..e4c8526 100644 --- a/python_basics/class/README.md +++ b/python_basics/class/README.md @@ -224,6 +224,9 @@ print(instance_b.a) # -> [] ``` ### [@property()](https://docs.python.org/3/library/functions.html#property) +{: .topic-optional} +This is an optional topic! + If a variable starts with one \_ this tells us that it is "private" and we shouldn't touch it directly with our dirty hands from the outside. However, we can use @property to control the communication with the outside world: