public class CallingClass { // main is the calling method public static void main(String args[]) { // This line creates an object of the class with worker methods // to specify which object's methods should run, in lines 14-15 WorkerClass workerObject = new WorkerClass(); // the next two lines use the object to // call worker methods method1 and method2 workerObject.worker1(); workerObject.worker2(); } }