/home/caleb/ASDV-Java/Semester 2/Assignments/lab8_2_CalebFontenot/src/main/java/com/calebfontenot/lab8_2_calebfontenot/interfacesGrouped/fun/TestEuropeansAgain.java |
nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt
nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java
package com.calebfontenot.lab8_2_calebfontenot.interfacesGrouped.fun;
public class TestEuropeansAgain {
public static void testWithArrayOfInterfaces() {
European[] europeans = new European[4];
europeans[0] = new French();
europeans[1] = new German();
europeans[2] = new Russian();
europeans[3] = new Italian();
for (European person : europeans) {
person.whatCountry();
person.beforeChrist();
person.practiceReligion();
person.speakLanguage();
person.WWI();
person.WWII();
}
}
public static void main(String[] args) {
testWithArrayOfInterfaces();
}
}