Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package handout.assignment.pkg2.main;
- /**
- *
- * @author Tim
- */
- public class Punt {
- private int x, y;
- public Punt() //constructor zonder argumenten voor oorsprong 0,0
- {
- this(0,0);
- }
- public Punt(int x, int y) //constructor voor punt x en y
- {
- this.x = x;
- this.y = y;
- }
- public void print()
- {
- System.out.println(" (X, Y) = ("+x+", "+y+")");
- }
- }
Add Comment
Please, Sign In to add comment