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