For Last Name A-M only : 1. Make a class named LastnameCircle with fields named radius, area,
Question:
For Last Name A-M only: 1. Make a class named LastnameCircle with fields named radius, area, and diameter. Include a constructor that set the radius to 3.5. Also include methods named setRadius(), getRadius(), computeDiameter(), which computes a circle's diameter, and computeArea(), which computes a circle's area.
*** Make a class named LastnameCircleTest whose main() method declares three Circle objects. Using the setRadius() method, assign one Circle a small radius value and assign another a larger radius value. Do not assign a value to the radius of the third circle; instead, retain the value assigned at constructor. Call computeDiameter() and computeArea() for each circle and display the results.
For Last Name N-Z only: 2. Make a class named LastnamePizza. Data fields include a String for toppings (such as "pepperoni"), an integer for diameter in inches (such as 12), and double for price (such as 100.00). Include the methods to get and set values for each of these fields.
*** Make a class named LastnamePizzaTest that instantiates one Pizza object and demonstrates the use of the Pizza set and get methods.