/// <summary> /// set whaleType /// </summary> public void setWhaleType(WhaleType wt) { whaleType = wt; }
/// <summary> /// constructor /// </summary> public Whale(int xPos, int yPos, int theWidth, int theHeight, WhaleType theWhaleType) : base("Whale", xPos, yPos, theWidth, theHeight) // appeasing the requirements of the base-class (MarineLife) constructor { whaleType = theWhaleType; }