Advertisement
Guest User

Untitled

a guest
Nov 19th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. class Wektor3D{
  2. public int x0;
  3. public int y0;
  4. public int z0;
  5.  
  6. public int x1;
  7. public int y1;
  8. public int z1;
  9.  
  10. Wektor3D(){
  11. this.x0 = 0;
  12. this.y0 = 0;
  13. this.z0 = 0;
  14.  
  15. this.x1 = 1;
  16. this.y1 = 1;
  17. this.z1 = 1;
  18. }
  19.  
  20.  
  21. public void dodaj(int x0, int y0, int z0, int x1, int y1, int z1){
  22. this.x0 = x0;
  23. this.y0 = y0;
  24. this.z0 = z0;
  25.  
  26. this.x0 = x1;
  27. this.y0 = y1;
  28. this.z0 = z1;
  29. }
  30.  
  31. public void dodaj(){
  32. this.x0 = 1;
  33. this.y0 = 2;
  34. this.z0 = 3;
  35.  
  36. this.x0 = 4;
  37. this.y0 = 5;
  38. this.z0 = 6;
  39. }
  40. }
  41.  
  42. class Wektor2D extends Wektor3D{
  43. public void dodaj(int x0, int y0, int x1, int y1){
  44. super.x0 = x0;
  45. super.y0 = y0;
  46.  
  47. super.x0 = x1;
  48. super.y0 = y1;
  49. }
  50. }
  51.  
  52. class Fasada{
  53.  
  54. }
  55.  
  56. public class Main {
  57. public static void main(String[] args) {
  58. Fasada fasada = new Fasada();
  59.  
  60. }
  61. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement