Apr-04-2021, 07:05 AM
The function is not referenced in the instance object, it is only referenced in the class object. The call
tst.fun(3, 5)
is incorrect here because fun() needs an instance to work. You can call newtst.fun(3, 5)