Question: reate a new class ( click on the New Class . . . button ) . Name this class BoardPiece. 3 ) Create a new

reate a new class
(
click on the
New Class
.
.
.
button
)
.
Name this class BoardPiece.
3
)
Create a new class. Name this class PlayerPiece.
4
)
We want the PlayerPiece class to inherit methods from the BoardPiece class. To do
this, double click on PlayerPiece. Find near the top where it says public class
PlayerPiece. On that same line, add to the end of the line, extends BoardPiece.
The PlayerPiece class can be thought of as a more specialized version of the
BoardPiece class. It can do anything the BoardPiece class can do
,
and more.
5
)
Click Compile.
(
There should be no errors. If there are, fix them
)
.

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!