Let's revisit a classic example from our early days of object-oriented programming. We will design a system that allows applying scaling and rotation to lines, circles, and rectangles. However, this time, we'll take it a step further and make it extensible.
Share this post
Polymorphism, Dynamic Dispatch, and Visitor
Share this post
Let's revisit a classic example from our early days of object-oriented programming. We will design a system that allows applying scaling and rotation to lines, circles, and rectangles. However, this time, we'll take it a step further and make it extensible.