lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Fri, Mar 30, 2012 at 2:15 PM, joao lobato <[email protected]> wrote:
> The variable type matches the constructed Class instead of being the
> most general superclass aplicable? Or an Inteface, otherwise it just
> feels like a PODS. Looks like poor design...

You mean this?

Quacker duck = BirdFactory.makeDuck();

As Obelix once said, These Romans are mad...

steve d.