Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class CircleTest {
- public static void main(String[] args) {
- Circle round = new Circle();
- Circle bigBoy= new Circle(998.5);
- System.out.println("The area of round is " + round.getArea());
- System.out.println("The perimeter of round is "+ round.getPerimeter());
- System.out.println("The area of bigBoy is " + bigBoy.getArea());
- System.out.println("The perimeter of bigBoy is "+ bigBoy.getPerimeter());
- bigBoy.setRadius(1111);
- System.out.println("The area of bigBoy is " + bigBoy.getArea());
- System.out.println("The perimeter of bigBoy is "+ bigBoy.getPerimeter());
- System.out.println(bigBoy);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment