Skip to content

Commit dd0da44

Browse files
committed
Add comment about polymorphism.
1 parent 12a67a0 commit dd0da44

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)