Animal animal = new Cat(); B. Cat cat = new Cat(); C. Animal animal = new Dog(); D. Cat cat = (Cat)new Dog();
A. Cat cat = (Cat)new Animal(); B. Animal a = new Cat(); Cat cat = (Cat) a; C. Animal animal = new Cat(); D. Animal a = new Dog(); Cat cat = (Cat) a;