From d415fe8c72af3275fa7c245fc785721a358c3c0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Mon, 18 Mar 2019 02:49:39 +0100 Subject: [PATCH] Inheritance --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index a4c7b6f..84ecaeb 100644 --- a/README.md +++ b/README.md @@ -812,7 +812,9 @@ class Person: def __init__(self, name, age): self.name = name self.age = age +``` +```python class Employee(Person): def __init__(self, name, age, staff_num): super().__init__(name, age)