Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def __init__(self):
- self.owner = "Boris"
- def exclaim(self):
- return "I'm defined in the superclass!"
- class HardwareStore(Store):
- pass
- home_depot = HardwareStore()
- print(home_depot.owner)
- print(home_depot.exclaim())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement