Class Die

  • All Implemented Interfaces:
    RollIfc

    public class Die
    extends java.lang.Object
    implements RollIfc
    • Constructor Summary

      Constructors 
      Constructor Description
      Die()  
      Die​(int sides)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getNumberOfSides()  
      int roll()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Die

        public Die()
      • Die

        public Die​(int sides)
    • Method Detail

      • roll

        public int roll()
        Specified by:
        roll in interface RollIfc
      • getNumberOfSides

        public int getNumberOfSides()