Suppose we need to write a factory function that constructs a runtime polymorphic object. For the purposes of this post, let’s say we want to construct a concrete shape object – a rectangle, triangle, or an ellipse. Here are our basic declarations: 1 2 3 4 5 6 7 8...