Libraries, APIs and comments
Code we didn't write is used through its documentation, where an API lists what a class stores and what it can do, and a method's comments state its precondition, what must be true before the call, and its postcondition, what will be true after.
From AP Computer Science A.