int main() {
doSomething(something);
}
string doSomething(Thing *x);
Here, doSomething is a function and Thing is a class. Now, I also have another inherited class called subThing, and I also want to doSomething to a pointer of subThing.
What do you call the concept of using pointers to inherited classes? I am asking this so that I can research more on this topic.