Sollicitatievraag bij Softsuave

constructor looping

Antwoorden op sollicitatievragen

Anoniem

19 aug 2016

no answer

9

Anoniem

9 feb 2019

In my Opinion, Constructor looping means "Recursive Constructor Invocation"....It means that when suppose you have two constructors (one is parameterized and other one happens to be default). When you are calling other constructor(Using this method) in one constructor and vice versa. This leads to infinite looping of calling constructors (leads to error saying "Recursive Constructor Invocation") Thanks!!

2