Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class SimpleCircle {
- int x;
- int y;
- int radius;
- int color;
- public SimpleCircle(int xFromConstructor, int yFromConstructor, int radiusFromConstructor) {
- x = xFromConstructor;
- y = yFromConstructor;
- radius = radiusFromConstructor;
- }
- void setColor(int colorFromMethod) {
- color = colorFromMethod;
- }
- int getX() { return x; }
- int getY() {
- return y;
- }
- int getRadius() {
- return radius;
- }
- int getColor() {
- return color;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement