Not allowed to include a default constructor - Java Basics
<p>Class A:</p>

<pre><code>public class A {    

    private String firstName;

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }
</code></pre>

<p>Class B:</p>

<pre><code>public class B extends A{

    private int billNum;

    B(String firstName, String billNum) {
        super(firstName);
        setBillNum(billNum);

    }

    public int getBillNumr() {
        return billNum;
    }

    public void setBillNum(int billNum) {
        this.billNum = billNum;
    }
</code></pre>

<p>1.) Now i want to add a default <strong>like</strong> constructor like <code>B() {}</code>, but i am not allowed to do so. Why is this ?</p>
