C++ features by examples
Sample_factory_method_demo Struct Reference
Inheritance diagram for Sample_factory_method_demo:
Collaboration diagram for Sample_factory_method_demo:

Public Member Functions

unique_ptr< Interfacefactory_method () override
 
- Public Member Functions inherited from Factory_method_demo
virtual unique_ptr< Interfacefactory_method ()=0
 
int client ()
 

Detailed Description

Definition at line 223 of file patterns.cpp.

Member Function Documentation

◆ factory_method()

unique_ptr< Interface > Sample_factory_method_demo::factory_method ( )
inlineoverridevirtual

Implements Factory_method_demo.

Definition at line 226 of file patterns.cpp.

226 {
227 return make_unique<Sample_product>(123);
228 }

The documentation for this struct was generated from the following file: