//code to reset the game after using frst chance public void reset() { x = 0; alert = 0; voice = obj.dead(); obj = new abstractClass(); }
public Form1() { InitializeComponent(); //initilize the object obj = new abstractClass(); // get the random no to fire voice = obj.dead(); shootaway = obj.shootAway(); }