your right i dont get the exception every time and here is my battleship class the variables are sent down from the ship class...
Ship class
abstract public class Ship
{
String name;
int size;
int hits;
/** Creates a new instance of Ship */
public Ship(String name, int size, int hits)
{
this.name = name;
this.size = size;
this.hits = hits;
}
}
here is the BattleShip class
public class BattleShip extends Ship
{
/** Creates a new instance of BattleShip */
public BattleShip(String name, int size, int hits)
{
super(name, size, hits);
}
} thanks