You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
388 B
Java

public class Main {
public static void main(String[] args) {
displayAnimals();
}
private static void displayAnimals() {
Helper helper = new Helper(new Animal[] {
new Cow(),
new Cat(),
new Dog(),
new Horse()
});
helper.displayInformation();
helper.displayAveragePrice();
}
}