Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java Java Objects Creating the MVP Prompting for Guesses

Chris Rubio
Chris Rubio
1,643 Points

Min 6:40 , why does he add game inside prompter ?

Min 6:40 , why does he add game inside prompter ?

1 Answer

First the Game was created. Then the Prompter was created, but it only exists in the scope of the Game. There could be a case (at least theoretically ) where the game might create multiple prompters.

carlorigacci
carlorigacci
4,777 Points

This answer is very vague and unclear. Could someone be kind enough to go into a bit more detail?