where to call the base class's implementation in derived class?
<p>Sometimes,deriving classes should always call through to the base implementation. where should I put the calling statement, before or after the subclass-specific code. For example:</p>

<pre><code>boolean foo(T x) {
    super.foo(x);
    ....blabla...; //&lt; derived calss-specific code
    return true;
}
</code></pre>

<p>OR</p>

<pre><code>boolean foo(T x)
{
    ....blabla...; //&lt;  derived calss-specific code
    return super.foo(x);
}
</code></pre>

<p>How to make a correct decision on different situation?</p>

<p>Thanks in advance.</p>
