Original Post
Are there any good books or sites anyone knows of that go into relatively good detail discussing the actual implementation of objects and class hierarchies etc. with specific reference to games? Something which discusses the pros and cons of the various methods and if possible provides examples. I've seen a lot of stuff explaining the ideas behind inheritance and composition and why you shouldn't have a very deep tree of unnecessary derived classes etc. and how composition works but they always seem to stick relatively close to the surface without provide any concrete examples. Something covering things like how/why to make a main GameObject base class and how to use it and good ways of implementing the various different object types that are typical in a game (and presumably inherit from GameObject). When composition is usually more suitable than inheritance in a game etc. and proper ways to do it.