Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdd0da44

Browse files
committed
Add comment about polymorphism.
1 parent12a67a0 commitdd0da44

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎SimpleOOP/src/simpleoop.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,5 +157,6 @@ def main():
157157
smell_the_flower(o)
158158
o.color()
159159

160+
print('Notice how completely different objects like of class Rose and Lotus can be used in same way.\nThis is polymorphism.')
160161

161162
if__name__=='__main__':main()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp