I have a struct called "area" from which "circle", "rectangle", & "triangle" extend.
My search function takes an area as argument but how can I check which kind of area it has been given?
I'm looking for something like:
getType(struct)
Or maybe:
struct.type |