package experiment1;
public class Calculator
{
private CalcEngine engine;
private UserGUI gui;
public Calculator()
{
engine=new CalcEngine();
gui= new UserGUI(engine);
}
public void show()
{
gui.setVisible(true);
}
public static void main(String args[])
{
Calculator calc=new Calculator();
calc.show();
}
}
public class UserGUI implements ActionListener
public class CalcEngine
1