Created
December 8, 2014 05:46
-
-
Save gergob/eaacdd265a41668fa327 to your computer and use it in GitHub Desktop.
SmartPhone invokes two constructors
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
Python 3.2.3 (default, Feb 27 2014, 21:31:18) | |
[GCC 4.6.3] on linux2 | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> from oop_multi import SmartPhone | |
>>> s = SmartPhone() | |
Phone constructor invoked. | |
Computer constructor invoked. | |
>>> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment