AP® Computer Science A glossary
Method decomposition
Course: AP® Computer Science A Shows up in: Unit 3: Class Creation
Breaking a large behavior of a class into smaller behaviors, with one method for each smaller behavior.
Appears in the course and exam description (CED): 3.1.A.4
The big method calls the small ones. A shared step, such as rounding to cents, is written once in its own method instead of being copied into several methods, which makes the code easier to read, test and change.
Learn it properly, with a checkpoint 3.1 Abstraction and Program Design