(Case Study) This chapter’s exercise 4 presented code containing the statement
ActorWorld world = new ActorWorld() ;
After that, we said, “
ActorWorld’sconstructor immediately creates a 10 by 10
BoundedGrid.” But if you look at GridWorld’s source code for the
ActorWorldclass, you’ll see that the zero-parameter
/** * Constructs an actor world with a default grid. */public ActorWorld(){}How does this empty constructor create “a 10 by 10
BoundedGrid”?
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.