What is it called when you override a method while calling a constructor?
<p>Is there even a term for this? It has completely escaped me. </p>

<p>Example:</p>

<pre><code>TableLayout tableLayout = new TableLayout(context){
    @Override
    protected void onDetachedFromWindow(){
        super.onDetachedFromWindow();
        getRidOfDialog();
    }
};
</code></pre>
