public class TestBall { public static void main(String[] args) { Ball b = new Haandball(30, "Hvit"); //Haandball h = (Haandball) b; //h.kastBall(); Fotball f = (Fotball) b; System.out.println("Kunne caste."); System.out.println(b.hentDiameter()); Fotball fotball = new Fotball(50, "Gul", "Nike"); System.out.println(fotball.hentDiameter()); fotball.sparkBall(); } }