AP® Computer Science A glossary
Program design
Also called: class design
Course: AP® Computer Science A Shows up in: Unit 3: Class Creation
Planning a program's classes, with each class's attributes and behaviors, in natural language or a diagram before writing code.
Appears in the course and exam description (CED): 3.1.A.7
A common plan is a box diagram: the class name, then the attributes with their types (such as - capacity : int), then the behaviors as method headers (such as + freeSpaces() : int). Nouns in a description usually become attributes; verbs become methods.