[597] in Coldmud discussion meeting

root meeting help first previous next next in chain last in chain last

Another inheritance question.

daemon@ATHENA.MIT.EDU (Fri Nov 25 20:29:10 1994 )

From: jeffpk@netcom.com (Jeff Kesselman)
To: coldstuff@MIT.EDU
Date: Fri, 25 Nov 1994 17:20:09 -0800 (PST)

Okay. My first one seemed so easy to you all, here's another one....


Object A
   defines foo which contains a 'pass' function call

Object B
  is a child of Object A

Object C
  is a child of Object A

Obejct D
  is a child of Obejct B and Object C
  defines foo which contains a 'pass' function call.

How many copies of Object A's data fields end up in Object D, and how many 
times will D.foo() call A.foo() ?

Thanks again,

Jeff Kesselman