Skip to content

Instantly share code, notes, and snippets.

@gergob
Created November 26, 2014 20:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gergob/a18d60066f9ba2be706b to your computer and use it in GitHub Desktop.
Save gergob/a18d60066f9ba2be706b to your computer and use it in GitHub Desktop.
Multiple Inheritance SmartPhone class in action
#
# will be discussed later why only the constructor of Phone class was invoked
#
>>> my_iphone = SmartPhone()
Phone constructor invoked.
>>> my_iphone.call_number("123456789")
Calling number 123456789
>>> my_iphone.install_software("python")
Computer installing the python software
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment