[MUD-Dev] (no subject)

Joe Andrieu joe at andrieu.net
Tue Nov 21 09:42:02 CET 2000


> -----Original Message-----
> From: mud-dev-admin at kanga.nu
> [mailto:mud-dev-admin at kanga.nu]On Behalf Of
> John Buehler
> Sent: Monday, November 20, 2000 10:03 PM
> To: MUD-Dev
> Subject: Re: [MUD-Dev] (no subject)
>
> >Essentially, by inheriting, you're assuming that one of
> the parent objects
> >will take full responsibility for the behaviour - one
> parent or another
> will
> >win out wrt: what attributes are inherited, where they
> clash.  If you're
> >componentising, you can list all the different values for
> the different
> >attributes (in essence), and write something to control that.
>
> But in an inheritance system, the parent and child classes
> cooperate in
> providing behavior.  Parent classes can provide utility
> methods that child
> classes can employ, child classes can ignore the parent
> implementation, or
> incorporate the parent implementation into their own behavior.

It seems like the value of components is that it forces you to be
strict and define your relationships clearly and cleanly, while
inheritance allows a programmer to just run with the inheritance and
do whatever, dealing with conflicts when they are a problem.  Or put
differently, components allows the diligent programmer to write tight,
clean code, while inheritance allows a looser mechanism for building
out the codebase.

-j

--
Joe Andrieu
Realtime Drama

joe at andrieu.net
+1 (925) 973-0765



_______________________________________________
MUD-Dev mailing list
MUD-Dev at kanga.nu
https://www.kanga.nu/lists/listinfo/mud-dev



More information about the mud-dev-archive mailing list