|
![](/i/fill.gif) |
Darren New <dne### [at] san rr com> wrote:
> > You can create a new 'Dog' instance using the info in "mom" Dog, but
> > that's not inheritance.
> No, that's delegation, and it's a perfectly valid way of building an
> object-oriented language with dynamic dispatch, modularization, and all
> those other goodies. :-)
Creating a new instance using the data from another instance is
certainly not delegation. It's just (partial) copying.
If you make string a="abc"; string b=a; you are *copying* the
contents of a to b. That's not delegation.
> > Of course all this is very basic OO stuff which should be clear to
> > everyone making object-oriented design and programs.
> Yes, but the range of possibilities is wider when you start designing
> object-oriented languages and paradigms.
Sure you can misuse inheritance in all kind of ways, but that doesn't
mean all those wrong ways of using it are what inheritance was created
for.
--
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -
Post a reply to this message
|
![](/i/fill.gif) |