Question: Read and run the Die.java code provided on this activity. Instances of this class represent a single die, which can be rolled. Write a class
Read and run the Die.java code provided on this activity. Instances of this class represent a single die, which can be rolled. Write a class that inherits from this class, called LoadedDie. As the name suggests, instances of this class represent a single die which is biased so that one side comes up more often than the other sides. The LoadedDie class should add one instance variable: private int bias; // Side with higher probability of appearing provide a constructor and override the roll method of the Die class.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
