foreach shape {Rectangle Triangle Circle} { @class $(shape) : public Shape { @if { $shape == "Circle" } { @public:@ } else { @private:@ }@ $(shape)() {}; // Default constructor. };@ }