public class Proov2{ public static void main(String[] arg){ Kast k1=new Kast(50, 20, 10); PuustKast k2=new PuustKast(40, 20, 10, 2); System.out.println(k1.ruumala()); System.out.println(k2.pikkus+" "+k2.lauaPaksus+" "+k2.ruumala()); } }