// Three class template. The UI handles input and output only import javax.swing.JOptionPane; public class UIClass { public static void main (String[]args) { System.out.println("UI main method starts"); // Manager object created and constructor run ManagerClass myManager = new ManagerClass(); // void method called myManager.myMethod(); System.out.println("UI main method ends"); } } ==================================================================== public class ManagerClass { private int myInt; // The constructor method. Code here is run automatically. public ManagerClass() { System.out.println("Manager class constructor - success"); ObjectTemplate myTemplateObject = new ObjectTemplate(); System.out.println("Object created from template - success"); } // A method that must be called public void myMethod () { System.out.println("Manager class method runs successfully"); } } ========================================================================== public class ObjectTemplate { // Constructor method public ObjectTemplate() { } // Various getter and setter methods go here as well as the toString method }