I started on a new project recently and saw the usage of overriding like below for the first time.
public class SomeClass { public void myMethod() { XS
That is called an "Anonymous class". You can find a lot of documentation about this special syntax on Internet. Good luck.