-- How many
C++ programmers
-- does it take to change a light bulb?
At least a dozen, but it's impossible to tell which one it
is, because they're all pointing at each other going "That's
me, over there !"
Related:
How many
rec.humor readers
-- does it take to change a light bulb?
565. 1 to put in a trick bulb (say, a flash bulb), 6 to
flame the first, pointing out that this bulb is
different from the old one, 29 to counter-flame,
pointing out that the new bulb is deliberately
different, and is parodying the old one, 7 to leave the
room, citing the extreme density of the 6, 12 to demand
that this commentary be redirected to the other room, 14
to ask that the bulb be changed again, since they missed
seeing it the first time, and 496 (a bit excessive, but
it's not my joke) to climb all over each other, trying
to put the old bulb back in....
How many
C++ programmers
-- does it take to change a light bulb?
You're still thinking procedurally. A properly designed light
bulb object would inherit a change method from a generic
light bulb class, so all you'd have to do is send a light
bulb change message....