this or super needs to be first statement in constructor so that child class constructor invokes parent class constructor first . This is required to initialize any variable in parent class before doing any thing in child constructor.
this or super needs to be first statement in constructor so that child class constructor invokes parent class constructor first . This is required to initialize any variable in parent class before doing any thing in child constructor.