Question: Please help ASAP How to Submit Please submit your java source files (answers) to the iCollege'assignment' drop box for your lab, once you have completed.

How to Submit Please submit your java source files (answers) to the iCollege'assignment' drop box for your lab, once you have completed. Failure to submit within your given time period will result in a ZERO FOR THIS LAB. NO EXCEPTIONS. Given the following Coloring interface and Point class //Coloring interface public interface Coloring public String getColor(); > 1/Point class public class Point { private int x; private int y; public Point() { this(e, e); } public Point(int *, int y) { setLocation(x, y); } 1/compare the x and y of two points public boolean equals(Object 0) { if (o instanceof Point) { Point other - (Point) o; return x - other.x && y -- other.y; //TRUE if they are the same } else return false; } 3 public int getX() { return x; ) public int getY() { return y; } public void setLocation(int n, int y) { this.x = x; this.y = y; } public String toString() { return "C" + x + ", " + y + ")"; } } Write the Coloring Point class such that it implements the Coloring interface and extends the Point class so that it can have colors. Override the toString() method to print out the coordinates and color of the Point, override the equals() method so that it compares color as well. Write the necessary constructors, accessors, and mutators. Write a client class, ColoringClient, and create two different objects of the Coloring Point class (CP_blue and CP_orange). Print the color of each object and compare if they are equal (x=x, y=y, color=color)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
