public static void main(String[] args) { AbstractFactoryI absFact = FactoryProducer.getFactory("color"); Color color1 = absFact.getColor("green"); color1.draw(); AbstractFactoryI absFact2 = FactoryProducer.getFactory("shape"); Shape shape1 = absFact2.getShape("rhombus"); shape1.draw(); }