CPSC 203, 2025 W1
September 18, 2025
A handcraft is a collection of __________. Every __________ has a __________, and a collection of __________. Every __________ is a collection of __________. Every __________ is either “knit” or “purl,” and is drawn as a __________.
Mechanism for creating user-defined types.
Used to identify attributes with an object. Associates functionality with the relevant objects.
Example:
Declaring an object of type color():
Accessing the data of an object of type color():
Decompose a problem into classes
List the data associated with each class
Write the “driver” code that illustrates the functionality you expect from each class.
Implement the functions you expect.
Run the driver code to test your functionality.
Handcraft:
Block:
Row:
Stitch:
Image:
https://us.prairielearn.com/pl/course_instance/193300/assessment/2588207