I'm currently learning about class factory patterns with C++. I keep having errors while trying to implement the factory. Suppose I have an abstract class and two derived classes. What I want the factory to do is to create a new object of the base class like so: Ball *sc = new SoccerBall(); I am not sure on how to implement this, I have tried but of no avail. What do I need to fix?I'm currently learning about class factory patt