The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

HO::abstract - helper for abstract classes and methods

SYNOPSIS

   package Class::Is::Abstract;

   use HO::abstract 'class';

DESCRIPTION

abstract_class
abstract_method

Note the abstract class places an init method not a new method in the package namespace. Thatswhy the order of use statements is important.

   package Wrong;
   use HO::class;
   use HO::abstract;

Here no init method is known when HO::class is called. Importing one from HO::abstract does not matter.

   use Right;
   use HO::abstract;
   use HO::class;

Now Right-\new> will die correctly.

AUTHOR

Sebastian Knapp, <rock@ccls-online.de>

COPYRIGHT AND LICENSE

Copyright (C) 2007-2011 by Sebastian Knapp

You may distribute this code under the same terms as Perl itself.