Question: In c++ Question 4 Now we'll write another class battleShip. If you're not familiar with the game, it might helpful to go read up on
In c++ Question 4 Now we'll write another class battleShip. If you're not familiar with the game, it might helpful to go read up on it before doing this question. https:/len.wikipedia.org/wiki/Battleship (game) class battleShipf public battleShip(string); -battleship) void setShipName (string) string getShipName(O void setsize (int): int getSize(): void recordHit); I Increments the hits data member bool isSunk() I1 returns true if hits is greater than equal to size private: string name; int size: int hits For this question, we've provided a complete class definition in the coderunner box. Write the function definitions for all 8 member functions of the battle Ship class
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
