method_x) from another Module (again, in the _init_ method of each class). Imagine that two of my classes need the same method (e.g. I have a Module with, say, 10 classes and 30 methods.When I write Class_2, I have to import again in the _init_ method the methods imported in Class_1 or the inheritance implies also the methods imported at the Class_1 level?įrom Module_5.Module_A import method_x again? At the same time, I have some methods from yet another Module imported at the Class_1._init_ method level. And I have some doubts regarding the importation of methods/classes through various modules: ![]() ![]() Right now I've covered the essentials and I'm experimenting with my first app in python, so it's the first time that I practice with modules, inheritance and etc. The thing is that I'm a total newbie, and I am learning programming through python and javascript. ![]() Also, I'm not an English native speaker, so be prepared for some grammar mistakes as well. This is my first question here in stackoverflow, so if I make one or two mistakes, please, let me now.
0 Comments
Leave a Reply. |