Advertisement
Guest User

Untitled

a guest
Jan 18th, 2020
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.90 KB | None | 0 0
  1. class Person:
  2.     def __init__(self, first_name, middle_name, second_name, birth_day):
  3.         self.first_name = first_name
  4.         self.middle_name = middle_name
  5.         self.second_name = second_name
  6.         self.birth = birth_day
  7.  
  8.  
  9. class Professor(Person):
  10.     def __init__(self, department, currency, salary, grant):
  11.         self.department = department
  12.         self.currency = currency
  13.         self.salary = salary
  14.         self.grant = grant
  15.  
  16.     # department = 'Department of IT Technologies of Alan Turing'
  17.     # currency = 'hryvna'
  18.     # salary = 25000
  19.     # grant = None
  20.  
  21.  
  22. class Student(Person):
  23.     def __init__(self, department, currency, salary, grant):
  24.         self.department = department
  25.         self.currency = currency
  26.         self.salary = salary
  27.         self.grant = grant
  28.  
  29.     # department = 'Department of IT Technologies of Alan Turing'
  30.     # currency = 'hryvna'
  31.     # salary = None
  32.     # grant = 1010
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement