Fuzion Logo
fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.

Idiom # 73: Create a factory

See programming-idioms.org:

Fuzion does not support reflection and it is not intended to ever support reflection. So there is no way to dynamically create an instance of a feature whose name is given as a string, but we can statically compare the string against the name of known heirs in the factory.


Running Example