Domanda di colloquio di Softsuave

constructor looping

Risposte di colloquio

Anonimo

19 ago 2016

no answer

9

Anonimo

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