Suppose that Horse is a subclass of Animal, and neither class is abstract. Which of the following is an invalid declaration and initialization? O Horse h = new Horse(); Horse h = new Animal(); = Animal a = new Animal(); O a = ; Animal a = new Horse();
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!