r/learnpython • • Dec 20 '16

Python OOP Series

360 Upvotes

30 comments sorted by

View all comments

1

u/bigfatbod Jan 11 '17

Brilliant stuff, thank you! I have one question regarding subclass init method of Manager and Developer. To pass in the parent attributes of name etc, you duplicate them. I find this a little strange. What if later on, you added in an attribute, say, date of birth? Without refactoring in your console, you'd have to go and also change every subclasses init methods too. Surely it would better to pass in a catch all like (self,parentargs,prog_lang) .... For the developer subclass. Or am I thinking too much?