Question d’entretien chez Softsuave

constructor looping

Réponses aux questions d'entretien

Utilisateur anonyme

19 août 2016

no answer

9

Utilisateur anonyme

9 févr. 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