Issue
When defining variables and functions within a class in python 3.x does it matter in which order you define variables and functions?
Is class code pre-complied before you would call the class in main?
Solution
The order of class attributes does not matter except in specific cases (e.g. properties when using decorator notation for the accessors). The class object itself will be instantiated once the class
block has exited.
Answered By - Ignacio Vazquez-Abrams
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.