Factory method pattern: Difference between revisions

Content deleted Content added
No edit summary
Tags: Mobile edit Mobile web edit
Examples: fixed weasel word
 
(2 intermediate revisions by 2 users not shown)
Line 27:
 
== Examples ==
This [[C++1423]] implementation is based on the pre C++98 implementation in the ''[[Design Patterns]]'' book.{{sfn|Gamma|Helm|Johnson|Vlissides|1995|page=122}}{{Which one|date=August 2024}}
<syntaxhighlight lang="c++">
import std;
Line 48:
};
 
// )implements the Product interface.
class ConcreteProductYOURS: public Product {
public: