Does this pattern have a name?

Posted by LK7jb on Stack Overflow See other posts from Stack Overflow or by LK7jb
Published on 2010-06-05T18:12:45Z Indexed on 2010/06/05 18:22 UTC
Read the original article Hit count: 157

Disclaimer: I'm trying to learn proper OO programming/design, so I'm pretty new to this stuff.

I guess this is a general design patterns question, but I'll base my example on a game engine or something that renders objects to the display.

Consider the following:

hierarchy

How can this sort of separation between physical objects (e.g., cubes, spheres, etc.) and the rendering mechanism be achieved in an extensible manner?

This design is not set in stone, and perhaps I've got something wrong from the start. I'm just curious as to how a problem like this is solved in real world code.

© Stack Overflow or respective owner

Related posts about language-agnostic

Related posts about design-patterns