factory_method_pattern::Product
-
class Product
Interface for the Product.
Defines the interface for all products created by the factory.
Subclassed by factory_method_pattern::ConcreteProductA, factory_method_pattern::ConcreteProductB
Public Functions
-
virtual std::string use() const = 0
A method that each concrete product will implement to define its behavior.
- Returns:
A string describing the product’s behavior.
-
virtual std::string use() const = 0