Main class for simple interfaces program
parent
0fd038a2cf
commit
800e9b344c
@ -0,0 +1,17 @@
|
|||||||
|
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();
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue