Call two function at a single function call
<p>I am not sure if it is as straight forward as I am writing but I have a use case in which two function call has to be done at the same time.</p>

<p>Example:</p>

<pre><code>class ABC {
    int a;
    String b;

    setA(int x) {
        //..
    }

    setB(int y) {
        // ...
    }
}
</code></pre>

<p>So what I want is that when I call <code>setA()</code>, <code>setB()</code> should also implicitly be called,
ie I don't want to write:</p>

<pre><code>setA(int x) {
    // ..
    setB(x);
}
</code></pre>

<p>Is there any way to do this? I thought of adding something like a listener so that when <code>setA()</code> is called my listener will call <code>setB()</code>. Is this an option?</p>
