Question: Create a skeleton code for this UML diagram. begin{tabular}{|l|} hline Ship hline -size: int -startRow: int -startCol: int -hits: int

Create a skeleton code for this UML diagram. \begin{tabular}{|l|} \hline Ship \\Create a skeleton code for this UML diagram.

\begin{tabular}{|l|} \hline Ship \\ \hline -size: int \\ -startRow: int \\ -startCol: int \\ -hits: int \\ -orientation: String \\ -type: int \\ \hline +Ship(size: int, startRow: int, startCol: \\ int, orientation: String) \\ +isSunk(): boolean \\ +isHit(row: int, col: int): boolean \\ +hit(row: int, col: int): void \\ +getSize(): int \\ +getStartRow(): int \\ +getStartCol(): int \\ +gethits(): int \\ +getOrientation(): String \\ +getType(): int \\ \hline \end{tabular}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!