Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Circle.java #2

Open
a95641126 opened this issue May 16, 2015 · 2 comments
Open

Circle.java #2

a95641126 opened this issue May 16, 2015 · 2 comments

Comments

@a95641126
Copy link
Owner

import javax.swing.JPanel;

public class Circle extends JPanel{
private static int radius;
private double area;
private double parameter;

Circle(int radius){
    this.radius = radius;

}

public double getRadius(){
    return radius;
}
public static double getArea(){
    return radius*radius*Math.PI;
}
public static double getParameter(){
    return 2*radius*Math.PI;
}
public void setRadius(int newRadius){
    this.radius = newRadius;
}

}

@Turuk3100
Copy link

Go Rada 10011

@Turuk3100
Copy link

Go Rada 10011

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants