@@ -0,0 +1,377 @@
+%0Apublic class Kwadrat %7B%0A%09public double bok;%0A%0A%09public Kwadrat(double bok) %7B // kontruktor%0A%09%09this.bok = bok;%0A%09%7D%0A%0A%09public void show() %7B%0A%09%09System.out.println(%22Pole: %22 + bok * bok);%0A%09%09System.out.println(%22Objetosc: %22 + bok * bok * bok);%0A%09%7D%0A%0A%09public Walec przygotujWalec() %7B%0A%09%09Walec walec = new Walec(bok / 2, bok); //definiuj%C4%85 nowy walec srednica a i wysokosc a%0A%09%09return walec;%0A%09%7D%0A%7D%0A

Create bok.java