package DesignPatterns.Erzeugungsmuster_CreationalPatterns.Factory.Zoo;

import java.lang.reflect.InvocationTargetException;
import DesignPatterns.Erzeugungsmuster_CreationalPatterns.Factory.Zoo.domain.*;

public class ZooMain {

	public static void main(String[] args) throws InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, SecurityException, ClassNotFoundException {
//		Animal tiere = Animal.erzeugeTier("Britisch","DesignPatterns.Erzeugungsmuster_CreationalPatterns.Factory.Zoo.domain.Cat", 12);
//		
//		System.out.println(tiere.speak());
		
		Animal tiere = FaktoryMethode.erzeugeTiere("Cat", "bob", 12);
		
		tiere.speak();
	}

}
