Hi all, the setup is as follows:
-One base class
-My top layer class that holds:
-Four derived classes from said base class(four different types of objects that all derived from my base class)
Is it possible to have a function in my top layer class that has one object parameter that will accept either the base class or any of the four derived classes?
I have a top layer class that I am trying to handle everything in, and writing four different functions for each derived class to get the shared functionality between all 4 classes seems way overboard.