The main function of the pizza order applet is to fill in values for the variables in the order component: address, phoneno. and pizzatype. The instance of the order component class is constructed by the top page, so it is passed to the other constructors so that they have access to the variables and methods of ordercomp. |