Review
The following review questions are intended to reinforce key concepts and information presented in this chapter. If you are unable to answer a question, return to the appropriate lesson and review, then try the lesson again. Answers to the questions can be found in Appendix A.Briefly explain encapsulation and why it is important in object-oriented programming.
What is method overloading, and when is it useful?
You need to create several unrelated classes where each class exposes a common set of methods. Briefly outline a strategy that will allow these classes to polymorphically expose that functionality to other classes.
You need to create several classes that provide a core set of functionality, but each class must be able to interact with a different set of objects. Outline a strategy for developing these classes with the least development time.
Describe an abstract class, and explain when one might be useful.