Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Person:
- def __init__(self, first_name, middle_name, second_name, birth_day):
- self.first_name = first_name
- self.middle_name = middle_name
- self.second_name = second_name
- self.birth = birth_day
- class Professor(Person):
- def __init__(self, department, currency, salary, grant):
- self.department = department
- self.currency = currency
- self.salary = salary
- self.grant = grant
- # department = 'Department of IT Technologies of Alan Turing'
- # currency = 'hryvna'
- # salary = 25000
- # grant = None
- class Student(Person):
- def __init__(self, department, currency, salary, grant):
- self.department = department
- self.currency = currency
- self.salary = salary
- self.grant = grant
- # department = 'Department of IT Technologies of Alan Turing'
- # currency = 'hryvna'
- # salary = None
- # grant = 1010
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement