/home/caleb/ASDV-Java/Semester 2/Assignments/lab8_2_CalebFontenot/src/main/java/com/calebfontenot/lab8_2_calebfontenot/interfacesGrouped/fun/TestEuropeansAgain.java
/*
 * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
 * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
 */
package com.calebfontenot.lab8_2_calebfontenot.interfacesGrouped.fun;

/**
 *
 * @author caleb
 */
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();
    }
}