From a72dda43763c1f2ec90c8cb72ff7a4f7079d593f Mon Sep 17 00:00:00 2001 From: "xuanyi.wang" Date: Thu, 13 Apr 2023 00:47:22 +0200 Subject: [PATCH] Update page 'Day 7 homework - Sloejtes' --- Day 7 homework - Sloejtes.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Day 7 homework - Sloejtes.md b/Day 7 homework - Sloejtes.md index b9e69cb..12550ce 100644 --- a/Day 7 homework - Sloejtes.md +++ b/Day 7 homework - Sloejtes.md @@ -181,8 +181,8 @@ None ``` **6. What happens when you try to call an abstract method, or access an abstract property in the base class?** -##### Answer: -* When trying to call an abstract method or access an abstract property in the base class, we will get a TypeError with a message indicating that the abstract method or property was not implemented in the subclass because abstract methods and properties in Python are meant to be overridden and implemented in subclasses. They serve as a sort of blueprint for what methods and properties a subclass should have, without dictating the implementation details. +**Answer:** +* When trying to call an abstract method or access an abstract property in the base class, we will get a `TypeError` with a message indicating that the abstract method or property was not implemented in the subclass because abstract methods and properties in Python are meant to be overridden and implemented in subclasses. They serve as a sort of blueprint for what methods and properties a subclass should have, without dictating the implementation details. **Example:** ```