a guest Jun 20th, 2019 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- import datetime
- class MySQLStore:
- def connect(self):
- print('connect to mysql database')
- def serialize(self, first_name: str , last_name: str, birth: datetime, hourly_rate: int, labor_hours: int):
- print('serialized data to mysql database')
- class Employee:
- // ...
- def save(self):
- db = MySQLStore()
- db.serialize(self._first_name, self._last_name, self.birth, self._hourly_rate, self._labor_hours)
RAW Paste Data