Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Cirkel {
- private int x;
- private int y;
- private int straal;
- //CONSTRUCTOR
- public Cirkel(int x, int y, int straal) {
- this.x = x;
- this.y = y;
- this.straal = straal;
- }
- //SETTERS
- public void setStraal(int straal) {
- this.straal = straal;
- }
- public void setMiddelpunt(int x, int y) {
- this.x = x-(straal/2);
- this.y = y-(straal/2);
- }
- //GETTERS
- public int getStraal(){
- return straal;
- }
- public int getX(){
- return x;
- }
- public int getY(){
- return y;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement