In ths Lesson(Exception, class), it says
Since our exceptions are subclassed in this way, we can catch any of
KitchenException
‘s subclasses by catchingKitchenException
.
Does it mean that the parent’s class also get attributes from the child’s class?
What does it mean exactly?
Thanks.