What is constructor chaining and how is it achieved in Java ? Ans. A child object constructor always first needs to construct its parent (which in turn calls its parent constructor.). In Java it is done via an implicit call to the no-args constructor as the first statement. - Study24x7
Social learning Network
06 Nov 2023 11:51 AM study24x7 study24x7

What is constructor chaining and how is it achieved in Java ? Ans. A child object constructor always first needs to construct its parent (which in turn calls its parent constructor.). In Java it is done via an implicit call to the no-args constructor as the first statement.

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles