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

Related terms

Was this page helpful?

No names are ever shown, and every public comment is checked by us first. Please do not include personal details. To get a reply, email [email protected].

↑ Top

Enlarged view of the selected figure