I have two classes, Offering and Course. They are both in the same package and the same directory.
Offering.java:
package assignment02; public class
You need to compile Course.java first—Offering.java depends on it because you referenced it. Also,
public int getNumCredits() { return course.getNumCredits; }
should be
public int getNumCredits() { return course.getNumCredits(); }