For the class Craps in Fig. 5.8, state the scope of each of the following entities: a)

Question:

For the class Craps in Fig. 5.8, state the scope of each of the following entities:

a) the variable randomNumbers.

b) the variable die1.

c) the method rollDice.

d) the method main.

e) the variable sumOfDice.

Fig. 5.8

I // Fig. 5.8: Craps.java 2 // Craps class simulates the dice game craps. 3 import java.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Java How To Program Late Objects Version

ISBN: 9780136123712

8th Edition

Authors: Paul Deitel, Deitel & Associates

Question Posted: