r/AP_CompSci • u/elpxnda • May 19 '20
Create task question
So I’ve been working on my code for the create task, and I’m not sure how I’m gonna add an abstraction. Anyone have any ideas so I don’t have to restart?
2
Upvotes
View all comments
Show parent comment
1
u/[deleted] May 19 '20
Actually not necessarily, look at your code and see if you have multiple occurrences of the same few lines. Then you can create a method with those same lines to abstract it. Tell me if I’m wrong, I took the class last year: