Class ConcreteProductA

java.lang.Object
Creational.FactoryMethod.ConcreteProductA
All Implemented Interfaces:
Product

public class ConcreteProductA extends Object implements Product
Concrete implementation of the Product interface. ConcreteProductA represents a specific type of product that implements the behavior defined in the Product interface. It provides a unique implementation for the `use` method.
  • Constructor Details

    • ConcreteProductA

      public ConcreteProductA()
      Default constructor for ConcreteProductA.
  • Method Details

    • use

      public String use()
      Implements the behavior for ConcreteProductA. This method returns a string that describes the behavior of ConcreteProductA when used.
      Specified by:
      use in interface Product
      Returns:
      A string indicating the specific behavior of ConcreteProductA.