I have base class "Contact" that bunch of other classes inherit from. It
ended up to be abstract class with set of properties and no methods.
Is it better approach to make it a role? What would be disadvantages of
both approaches?
My goal was to set up Moose interface classes that map to underlying
postgres tables as close as possible. As there is 'contact' base table
other tables inherit from, making contact a base class seemed like an
obvious choice. After reading about roles though I'm not so sure.
tx,
Dmitri
- Roles vs Base classes Dmitri
-