Created
November 26, 2014 20:58
-
-
Save gergob/a18d60066f9ba2be706b to your computer and use it in GitHub Desktop.
Multiple Inheritance SmartPhone class in action
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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