Browse Source

Inheritance

pull/28/head
Jure Šorn 5 years ago
parent
commit
78c74b3eed
1 changed files with 0 additions and 2 deletions
  1. 2
      README.md

2
README.md

@ -812,9 +812,7 @@ class Person:
def __init__(self, name, age): def __init__(self, name, age):
self.name = name self.name = name
self.age = age self.age = age
```
```python
class Employee(Person): class Employee(Person):
def __init__(self, name, age, staff_num): def __init__(self, name, age, staff_num):
super().__init__(name, age) super().__init__(name, age)

Loading…
Cancel
Save