Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class TestCode1 {
- private double radius;
- public double getArea() {
- return this.radius * this.radius * Math.PI;
- }
- public String toString() {
- return "radius: " + this.radius + "area: " + this.getArea();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement