Factory
1 | { |
core concept
Shared code interface not hardcoded with typeA or typeB,
but typeA and B all extend the same factory and initialization using same function.
After create, we can invoke the same name function provided by typeA or B.
1 | { |
Shared code interface not hardcoded with typeA or typeB,
but typeA and B all extend the same factory and initialization using same function.
After create, we can invoke the same name function provided by typeA or B.
Bitcoin