Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this template, choose Tools | Templates
- * and open the template in the editor.
- */
- package practica.pkg4;
- /**
- *
- * @author Bas
- */
- public class Veelhoek {
- int x, y, dimensie; //declaratie
- String a, b, c, d, e, f, g, h, i, j;
- public Veelhoek(){ //de constructor zonder argumenten (0,0)
- this.x = 0;
- this.y = 0;
- }
- public void printVeelhoek(){
- System.out.println("Coördinaat Veelhoek: (" + this.x + "," + this.y + ")");
- }
- public Veelhoek(int x){ //de constructor met 1 argument (d)
- System.out.println("");
- for(dimensie = x; dimensie <= x; dimensie++){
- if(dimensie <= 2){
- System.out.println("Aantal hoeken/punten: " + dimensie + ".");
- System.out.println("!! WARNING !! Er zijn minder dan 3 hoeken/punten. Er wordt/worden een hoek(en)/punt(en) bijgemaakt.");
- dimensie = 3;
- }
- System.out.println("Aantal hoeken/punten: " + dimensie + ". Coördinaten: ");
- }
- }
- public class setPunt {
- }
- }
Add Comment
Please, Sign In to add comment