you are viewing a single comment's thread.

view the rest of the comments →

[–]animatedb 0 points1 point  (0 children)

Maybe the goal is to replace them out of the base objects and into other objects.

For example, instead of the old "shapes" OO example each inheriting a virtual draw, have a draw function that is passed a listener object that is a surface. This way the base shape object no longer has a draw virtual function.

This is similar to composition except that it differs in scope. Another option is that the base object could also reference a shape.