java constructor in super classes
<p>The following code is a testing program. Why i can't use A(int a), in this program?</p>

<pre><code>public class A {
    int a;
    void meth(int b) {
        a+=b;
    }
    A(int a) {
        this.a=a;
    }
}

class B extends A {
    int a;
    void meh2(int b) {
        a+=b;
    }
}
</code></pre>

<p>why can't pass parameter to constructor? What the reasons? Netbeans error message:</p>

<p>constructor A in class tma1.A cannot be applied to given types;
  required: int
  found: no arguments
  reason: actual and formal argument lists differ in length</p>
