< Previous | Contents | Next >

Discussion Questions

1. What types of game entities could you create with aggregation?

2. Do friend functions undermine encapsulation in OOP?

3. What advantages does dynamic memory offer to game programs?

4. Why are memory leaks difficult errors to track down?

5. Should objects that allocate memory on the heap always be required to free it?