< Previous | Contents | Next >

Discussion Questions

1. What benefits does inheritance bring to game programming?

2. How does polymorphism expand the power of inheritance?

3. What kinds of game entities might it make sense to model through inheritance?

4. What kinds of game-related classes would be best implemented as abstract?

5. Why is it advantageous to be able to point to a derived class object with a base class pointer?