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
Ahmad_27 0 Newbie Poster
Reverend Jim 5,224 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster
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.