How to improve my abstract factory pattern?
问题 I have really no much experience using design patterns. I guess I need to use Abstract Factory Pattern in my situation. I'm creating a system to generate math problems. The developer must implement two interfaces: Problem: This contains the properties which needs the problem generated. Configuration: This is the range parameters or conditions to generate a Problem. Factory: He is incharge of create the new Problem. What does it mean? It means like a black box. For input is the Configuration