< Previous | Contents | Next >

Discussion Questions

1. What are the advantages and disadvantages of procedural programming?‌

2. What are the advantages and disadvantages of object-oriented programming?

3. Are accessor member functions a sign of poor class design? Explain.

4. How are constant member functions helpful to a game programmer?

5. When is it a good idea to calculate an object’s attribute on the fly rather than storing it as a data member?