Jan-21-2018, 06:34 PM
hi forum! i'm pretty new to python, i just wrote some simple codes in python.
the examples i have seen and written define the method in the class declaration (which is also definition, i guess).
i come from c++ background where the desired way for class methods is to declare the method in class's header file, and define it in class's source file.
i wonder if i can do the same in python?
the examples i have seen and written define the method in the class declaration (which is also definition, i guess).
i come from c++ background where the desired way for class methods is to declare the method in class's header file, and define it in class's source file.
i wonder if i can do the same in python?