Create a class called Circle contains:
Two instance variables (attributes): radius (typed double) and color (typed String).
Provide a set and a get method for each instance variable.
getArea(), which return the area of this instance, respectively.
Create another class called Circle Test to :
Create two different objects “Circle”,
Call methods

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.