Advertisement
Guest User

Untitled

a guest
Aug 16th, 2015
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.49 KB | None | 0 0
  1.    public class main {      
  2.    public static void main(String[] args) {
  3.        MyCircle c1 = new MyCircle(new MyPoint(1,5), 3);
  4.        System.out.println(c1);
  5.        System.out.println(c1.getArea());
  6.        c1.setRadius(4);
  7.        System.out.println(c1.getRadius());
  8.        
  9.        MyPoint p1 = new MyPoint(5,7);
  10.        c1.setCenter(p1);
  11.        System.out.println(c1.getCenter());
  12.        
  13.  
  14.        MyPoint c4 = new MyPoint(3,4);
  15.        MyCircle p4 = new MyCircle(c4, 10);
  16.        System.out.println(p4.x);
  17.        
  18.         }
  19.    }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement