May-02-2018, 09:04 PM
There are no reglementations concerning private attributes. There is only a coding convention (like you used in your code) to mark private attributes but in general they behave like global variables. It's a bit different in python in comparison to C/C++ or Java. Somehow the same goes for abstract classes. There are abstract classes and also I like to program with these since they are a good programming technique. But also those methods only can be marked as abstract and can vary in its given attributes so that a method in a child class only needs the same name. Both concepts exist in python and are used, but they work in a different way than you may know it from other programming languages :)