Discover a world of knowledge and get your questions answered at IDNLearn.com. Our platform is designed to provide trustworthy and thorough answers to any questions you may have.
Answer:ublic class Circle {
public int radius = 1;
public double diameter;
public double area;
//Constructor for circle class
public double Circle(int First){
return radius;
}
//Start set and get for radius
private double setRadius(int r){
return radius = 5;
}
private double getRadius(){
return radius;
}
//Start set and get for diameter
public double setDiamter(double d){
return diameter = 7;
}
public double getDiamter(){
return radius * diameter;
}