Update page 'Day 5 homework - Sloetjes'

xuanyi.wang
2023-04-07 00:08:47 +02:00
parent c3a76662e9
commit 02a5876ed2
+1 -1
@@ -29,7 +29,7 @@ print(v.treasure) # prints 'Attribute deleted!\ngold'
``` ```
**To get the other person's class to return "gold", despite any countermeasures they've implemented:** **To get the other person's class to return "gold", despite any countermeasures they've implemented:**
###### It can be achieved by creating a new class that inherits from the Vault class and overrides its _treasure attribute. ###### It can be achieved by creating a new class that inherits from the Vault class and overrides its `_treasure` attribute.
``` ```
class GoldVault(Vault): class GoldVault(Vault):
def __init__(self): def __init__(self):