 <p>Use <code>super()</code> as the first line inside your constructor for the reason as shared in an SO-answer here - <a href="http://stackoverflow.com/a/1168356/1746118">why-does-this-and-super-have-to-be-the-first-statement-in-a-constructor</a> and you can change your existing code as - </p> <pre><code>public Car(String name, int modelNo, int seatCap) { super(name, modelNo); this.seatCap = seatCap; } </code></pre>