Question: java programming Soru 2 Hem fermone Sony 1. A disk has x and y coordinates, radius, and color. Define a disk class with these attributes.

java programming
Soru 2 Hem fermone Sony 1. A disk has x and y coordinates, radius, and color. Define a "disk" class with these attributes. 2. Define the constructor of the class. 3. Define two methods, paint (which paints the disk to a given color), and moveBy (which moves the disk by these coordinates). Soru 2 Hem fermone Sony 1. A disk has x and y coordinates, radius, and color. Define a "disk" class with these attributes. 2. Define the constructor of the class. 3. Define two methods, paint (which paints the disk to a given color), and moveBy (which moves the disk by these coordinates)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
