Hi, I’d like to get answers to the 2 following questions about the course in subject, Section 7-Classes, lesson n.11- Properties:
-
with the final version of the code, that use the @property decorator, I still can see the internal variable product.__price in the list, also if hidden by two underscores:
-
if I comment the @price.setter section, I get an error because the constructor can’t set the value of the price:
This is the version of my VSCode:
Version: 1.74.2 (user setup)
Commit: e8a3071ea4344d9d48ef8a4df2c097372b0c5161
Date: 2022-12-20T10:29:14.590Z
Electron: 19.1.8
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: 10.2.154.15-electron.0
OS: Windows_NT x64 10.0.22621
Sandboxed: No
Thanks in advance for your kind help.
Giacomo
(Italy)