Question: java 1. Here is Java code to create a chess piece: public class ChessPiece { public String pieceName; public String position; public ChessPiece (String pieceName,

java
1. Here is Java code to create a chess piece: public class ChessPiece { public String pieceName; public String position; public ChessPiece (String pieceName, String position) { this.pieceName = pieceName; this.position = position; } } a) Make this class abstract and add an abstract method to it, called move. b) Take each of the classes from last exercise and have it implement the move method. Note: the body of the concrete classes' methods will only contain code to print "Movement! to the screen
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
