From 8221fe4bb6c2e06d2bab8193a5ac044cd4603026 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Tue, 19 Mar 2019 02:40:25 +0100 Subject: [PATCH] Inheritance --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 2828fe3..506878e 100644 --- a/README.md +++ b/README.md @@ -819,6 +819,11 @@ class Employee(Person): self.staff_num = staff_num ``` +```python +>>> Employee.mro() +[, , ] +``` + ### Comparable * **If eq() method is not overridden, it returns `'id(self) == id(other)'`, which is the same as `'self is other'`.** * **That means all objects compare not equal by default.**