Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Profile:
- def __init__(self, address, phone):
- self.address = address
- self.phone = phone
- def save_in_db(self):
- pass
- class User:
- def __init__(self, username, password):
- self.username = username
- self.password = password
- def save_in_db(self):
- pass
- class Account:
- @staticmethod
- def new_account(username, password, address, phone):
- new_user = User(username=username, password=password)
- new_user.save_in_db()
- new_profile = Profile(address=address, phone=phone)
- new_profile.save_in_db()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement