Question: Complete the following tasks in Java within the lab time using NetBeans. Create a class called Circle and has 1 instance variable, 1 class variable

Complete the following tasks in Java within the lab time using NetBeans. Create a class called Circle and has 1 instance variable, 1 class variable declared as final and one object 1. radius as a Double 2. Pl as Static, Final and Double 3. centerPoint as an object consisting of x and y Your class should have a constructor that take the radius and center Point information. Your constructor should assign the values and create the centerPoint object (by calling its class constructor). provide a set and a get method for each instant variable . provide cloning method (override clone) method or create a copy constructor), explain which cloning will you choose (Deep or shallow) and why .create a method "area" that computes and returns area of a circle. provide lavaDoc documentation Create center Point class that consists of two instance variables 1. X as Double 2. Y as Double provide a constructor for this class that takes x and y information provide a set and a get method for each instant variable . provide cloning method (override clone() method or create a copy constructor), explain which cloning will you choose (Deep on shallow) and why provide cloning method (override clonel) method or create a copy constructor), explain which cloning will you choose (Deep or shallow) and why Write a class called TestCircle with a main method in this method you will create an array that consists of 3 objects of class circle, one of these circles must be a clone is a clone. Generate Java Doc, print circles information, then set the radius of the cloned circle to a new value and print information
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
