I have an abstract superclass (Animal) and three subclasses (Dog, Horse, Elephant). In a new class (AnimalTest) I am trying to create an array with 3 assigned values. AnimalTest is in the same package.
So far my code is:
public class AnimalTest{
public static void main( String[] args ){
Animal[] ar = { dalmatian, arabian, indian };
}
}

New Topic/Question
Reply




MultiQuote








|