school/Project/MyDie.java

18 lines
323 B
Java
Raw Normal View History

2021-02-18 09:36:12 -05:00
import java.util.Random;
public abstract class MyDie {
protected int myValue;
protected Random rand;
public MyDie(){
myValue = -1;
}
abstract public void roll ();
abstract public int getValue();
abstract public void setSeed(int seed);
abstract public int compareTo(Object o);
}