Same method , different module name

Suppose I import add() method from two different modules “cal” and “mat” and call add() in the script. Which module’s add() method will be executed first? Also if add() method of “cal” module takes different number of arguments than that of “mat” , will I be able to overload that method?

hey @garggaurav823 ,
the latest imported module will be used.

and about the overloading , it won’t happen.
for overloading, i guess you need to create functions and not import them.
But you can give it a try and check if it works , i guess it shouldn’t.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.