🕰️ SIMULA GENESIS DIFFICULTY: Apprentice Creational

The Factory Method Incantation in Simula

Delegating the act of creation to subclasses in the dawn of objects.

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Factory Method
ARCANUM SCHOOL: Conjuration // Genesis
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// SIMULA PATTERN //
Begin
    Class Creator;
    Virtual: Ref(Product) Procedure FactoryMethod;
    Begin
        Ref(Product) p;
        Procedure Operation;
        Begin
            p :- FactoryMethod;
        End;
    End;
End;

The Factory Method defers instantiation to the descendants. In the primordial object soup, a Creator defines the ritual, but allows its mystical heirs to decide the exact nature of the spawned entity.

Runic Tags: #simula #gof #creational #genesis