Pergunta de entrevista da empresa Photon

What happens when you create an object of the same class in the constructor? Write a program to dynamically estimate least cost path in a 2d matrix (This was the test).

Resposta da entrevista

Sigiloso

12 de jul. de 2017

What happens when you create an object of the same class in the constructor? - This causes a stackoverflow error because we recreate the same class every time.