SE450: What if you want class names to be hidden from clients? [43/47] Previous pageContentsNext page

What if class names are not stable? (I have the shapes Circle and Square, but may generalize later to allow ellipses and rectangles.)

Consider using a static factory:

Previous pageContentsNext page