Advertisement
kanzeparov

Fifth_toPaint_SimpleCircle

Nov 18th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.54 KB | None | 0 0
  1. class SimpleCircle {
  2.  
  3.     int x;
  4.     int y;
  5.     int radius;
  6.     int color;
  7.  
  8.     public SimpleCircle(int xFromConstructor, int yFromConstructor, int radiusFromConstructor) {
  9.         x = xFromConstructor;
  10.         y = yFromConstructor;
  11.         radius = radiusFromConstructor;
  12.     }
  13.  
  14.     void setColor(int colorFromMethod) {
  15.         color = colorFromMethod;
  16.     }
  17.     int getX() { return x; }
  18.     int getY() {
  19.         return y;
  20.     }
  21.     int getRadius() {
  22.         return radius;
  23.     }
  24.     int getColor() {
  25.         return color;
  26.     }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement