There are the following lines written in Java from the Android SDK :
public class MainActivity extends AppCompatActivity { @Override protected void onRestoreInstanceState(Bundle savedInstanceState) { super.onRestoreInstanceState(savedInstanceState); } } In this example, the MainActivity class inherits the AppCompatActivity class and overrides the onRestoreInstanceState method to which it receives an object of type Bundle . This instance of the savedInstanceState can contain some kind of data, i.e. he is not null .
The question is: how are such things implemented, in the sense that an argument that already contains something in itself gets into the overdetermined method? Or, if we ignore Android and take pure Java - can an ancestor class pass any arguments to the overridden method in the heir class?