DesignPattern::Factory::Product - a participant in the Perl implementation of the Factory Method.


DesignPattern-Factory documentation Contained in the DesignPattern-Factory distribution.

Index


Code Index:

NAME

Top

DesignPattern::Factory::Product - a participant in the Perl implementation of the Factory Method.

DESCRIPTION

Top

DesignPattern::Factory::Product is the superclass of DesignPattern::Factory::ConcreteProduct. That is, ConcreteProduct inherits all methods from Product, but can override these methods by implementing its own methods.

DesignPattern::Factory::Product defines the interface of objects the factory method creates.

new()

Constructor for this class. Usage:

  my $object = DesignPattern::Factory::Product->new();

AUTHOR

Top

Nigel Wetters (nwetters@cpan.org)

COPYRIGHT

Top


DesignPattern-Factory documentation Contained in the DesignPattern-Factory distribution.

package DesignPattern::Factory::Product;
$VERSION = '0.01';
use strict;
use Carp; # nice errors
use vars qw( $VERSION );

# constructor
sub new
{
    my $class = shift;
    return bless {}, $class;
}

1;