I have a class: class1 It has multiple methods: method1, method2,...
is is possible to define a variable like: var = method1 to call this method from an instance of class1 ?
Meaning, instead of doing this:
instance1 = class1
result = instance1.method1
I want to do something like this:
instance1 = class1
var = method1
result = instance1.var
Is this somehow possible in python?
Many thanks upfront
I tried exactly like this:
instance1 = class1
var = method1
result = instance1.var