I have a piece of code I am trying to understand , this is an Java-Android Based .
volumeControl.setOnSeekBarChangeListener(new OnSeekBarChangeListener() {
@Override
public void onStartTrackingTouch(SeekBar seekBar) {
}
@Override
public void onStopTrackingTouch(SeekBar seekBar) {
}
@Override
public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
audioManager.setStreamVolume(AudioManager.STREAM_MUSIC, progress, 0);
}
});
In this code there an @Override
method done inside the parentheses is this the best way to do this code and how this is done .
How the java compiler understand this constructor call.
There is a int variable called progress from where it gets it's value , how the function call is done.