Summary: Class Definitions—More Details
This lesson summarizes the major points covered in this chapter.
We'll cover the following...
- A Boolean-valued method returns either true or false. By defining such methods within a class, we provide a way for a client to test certain conditions relevant to the class.
- A carefully chosen name for a Boolean-valued method will help us avoid logical errors. Typically, such method names begin with “is” or “has.”
- A private method generally performs an