Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class A:
- def print_hello(self):
- print("Hello")
- class B(A):
- def print_world(self):
- print("World")
- b = B()
- b.print_hello()
- b.print_world()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement