I've created a class that has a bunch of inherited classes (parent classes) so that I can use polymorphism but the problem is that there are two classes that are calling each other.
So I need to forward declare them and I can forward declare one class but when I forward declare the inherited class the compiler says it can't change pointer from one to the other.
Is there a way to make the forward declaration of the inherited class so that it states it inherits from it? Ex:
class Shape;
class Circle:Shape;