Thank you! The intention of addChild's frog argument was that if the frog were to have children then it should have be instantiated with createFrog right before being passed in the instance. So there's the parent frog who had a baby (and the baby frog should have been instantiated with createFrog which is now also an instance of a frog sometime in our app before being passed as a child)
Thank you! The intention of addChild's
frogargument was that if the frog were to have children then it should have be instantiated withcreateFrogright before being passed in the instance. So there's the parent frog who had a baby (and the baby frog should have been instantiated withcreateFrogwhich is now also an instance of a frog sometime in our app before being passed as a child)So in the code it would look something like this:
or