-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Description
This file defines addNums method twice, but adding simple prints in bodies of those definitions (e.g. print("func one") and print("func two")) shows that the only method invoked is the second one (last one defined, technically). Alternatively, you could try to change the order of definitions - this would raise the error during execution.
Such polymorphism doesn't exist in Python.
Cheers!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels