[ABE.pm] Inhertance

John Cappiello john-abe at apt202.net
Wed Mar 7 09:50:41 PST 2007


On Wed, Mar 07, 2007 at 12:42:17PM -0500, Faber Fedor wrote:
> Am I correct in wanting to do this: create an object called OtherOne
> that inherits from ClassOne and has a function called myAverage which
> is actually myOtherAverage?

It sounds like it.  The way to ask it I suppose is...

OtherOne ISA ClassOne except that its method of averaging is slightly
different.

Much like:

Doberman ISA Dog but has a specialized size.

Sounds reasonable to me, more so if you'll have other various specialized
averaging routines... other than sum / parts  :P

-- 
jcap


More information about the ABE-pm mailing list