Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # I think that I don't quite understand the instrunction as it seems too simple
- class Message:
- pass # implementation
- class Person:
- pass # implementation
- class Phone(object):
- def __init__(self, message, person):
- self.message = message
- self.person = person
- def send_message(self):
- self.open_connection(self.person)
- self.write_connection(self.message)
- self.close_connection()
- message = Message()
- person = Person()
- phone = Phone(message, person)
- phone.send_message()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement