Building Games with Inheritance

  • Bruce Sutherland


Being a productive video game developer involves writing well-organized code that can be reused as often as possible. C++ classes provide a feature named inheritance that helps us achieve both of these goals. Inheritance allows us to create generalized base classes that can be derived from to create classes with a more specific purpose. In this chapter you learn how this allows us to share behavior among classes.


Vehicle Class Public Entity Entity Class Game World Game Class 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Copyright information

© Bruce Sutherland 2014

Authors and Affiliations

  • Bruce Sutherland
    • 1
  1. 1.VICAustralia

Personalised recommendations