Design an application program that declares two circles


Design a class name circle with fields named radius area and diameter include a constructor that sets the radius to 1. include get methods for each field but include a set method only for the radius when the radius is set calculate the diameter (twice the radius) and the area( the radius squared time pi, which is approximately 3.14) create the class diagram and write the pseudocode that defines the class. 

B) design an application program that declares two circles set the radius of one manually but allow the other to use the default value supplied by the constructor then display each circles values.

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: Design an application program that declares two circles
Reference No:- TGS0123247

Expected delivery within 24 Hours