http://www.perlmonks.org?node_id=5185


in reply to RE: My favorite sodapop is...
in thread My favorite {soda|pop} is...

coffee can't be a subtype of cola for it has the properties of 'hot' and the methods of 'brew'. All can be subtypes of caffiene I suppose.

Replies are listed 'Best First'.
RE: RE: RE: My favorite sodapop is...
by Anonymous Monk on Mar 14, 2000 at 23:11 UTC
    They would actually both be child classes of beverage, and would share the private value of caffeinated. -E2