Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
when the above program is executed first SuperClass Constructor and then ChildClass constructor is (executed)displayed. What is the use of having the super keyword in the child class constructor when infact the super class constructor is executed when the object for the child class is created since the child class extends to the superclass.
Let creation of an object of subclass invokes non-parameterized Or parameterized constructor of subclass, implicitly It invokes non-parameterized constructor of superclass by default. Sometime you may need to invoke a particular type of superclass's constructor rather than non-parameteried as given in Stephan's example then you can use super keyword.
That super keyword statement should always be first statement in constructor of subclass.