Guest User

Untitled

a guest
Jan 24th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. public class zmrzlina
  2. {
  3. // atributy
  4. Elipsa kopeček;
  5. Trojúhelník kornout;
  6. int x, y;
  7. int š, v;
  8. Barva barvakopečku;
  9. //Barva barvakornoutu;
  10. // konstruktor
  11. public zmrzlina(int xPozice, int yPozice, int šířka, int výška, Barva kopeček)
  12.  
  13. {
  14. barvakopečku = kopeček;
  15. //barvakornoutu = Barva.ŽLUTÁ;
  16. x = xPozice;
  17. y = yPozice;
  18. š = šířka;
  19. v = výška;
  20.  
  21. // instance
  22. new Elipsa(š/3, y, š/3, š/3, barvakopečku);
  23. //new Obdélník(x, š/5, š, v, Barva.KRÉMOVÁ);
  24. new Trojúhelník(š/3, š/5, š/3, v, Barva.ŽLUTÁ, Směr8.JIH);
  25. }
  26. }
Add Comment
Please, Sign In to add comment