January 2020
Intermediate to advanced
288 pages
6h 45m
English
This chapter covers
Having instantiated an object, you’re ready to use it. Objects can offer useful behaviors: they can give you information and they can perform tasks for you. Either way, these behaviors will be implemented as object methods.
Before we discuss the design rules that are specific for either retrieving information or performing tasks, we’ll first discuss something these methods should have in common: a template for their implementation.
Whenever you design a method, you should remember the following template.