These are valid questions, but unfortunately there is no general rule.
Regardless of whether you need a super method call, it depends on whether the super method really does something that needs to be done. In other words: do you extend or replace an overridden method? Good class API documentation should give you an answer. In addition, libraries often follow certain conventions to make it clear how to use them.
The answer to the question of where to place the super call depends on when you want to run the extension youre. Do I need to run before or after the super method? Most often, you first call super, and then do something extra. But if you need to prepare something for a super method, for example, to change some state of an object or manipulate arguments, you will place the code before the super call. Again, the API documentation should give you the answer here.
source share