Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #HardwareStore subclass inherited from Store superclass
- class HardwareStore(Store):
- pass
- #new instance of HardwareStore class with variable name home_depot
- home_depot = HardwareStore()
- #accessing the Store owner attribute from
- #the HardwareStore instance
- home_depot.owner
- #accessing the exclaim method from the
- #HardwareStore instance
- home_depot.exclaim()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement