January 7th, 2013, 07:26 AM
Calling a method without parameters
If Builder() is a method without any parameter, is the following code:
calls the method Builder() ?
January 7th, 2013, 11:33 AM
A method pertains to a class so you need to call it with the class reference: SomeClass.Builder. Furthermore, I think you still need the parentheses: SomeClass.Builder().
January 7th, 2013, 11:47 AM
I think the method is belong to this classes. And there is no parentheses. That is why I ask...
Originally Posted by rrashkin
January 7th, 2013, 11:57 AM
No. Builder refers to the method object.
Builder() # calls the method
If you wanted to pass a method to another function how would you do it?
image = draw_method()
# work with image
[/code] are essential for python code and Makefiles!