// "Exer3bDrv.java" - Exercise on Inheritance
//
// Modify this program to draw some cats and some happy faces.

import java.applet.*;
import java.awt.*;

public class Exer3bDrv extends Applet
{
    public void paint (Graphics g)
    {
    Exer3b cat1, cat2, cat3;
    HappyFaceClass face1, face2, face3;
	int width = getSize ().width;
	int height = getSize ().height;
	
	cat1 = new Exer3b (100, 100);
	cat1.show (g);          // Show the cat face
	cat2 = new Exer3b (100, 300);
	cat2.show (g);          // Show the cat face
	cat3 = new Exer3b (100, 500);
	cat3.show (g);          // Show the cat face
	face1 = new HappyFaceClass (100, 200);
	face1.show (g);          // Show the happy face
	face2 = new HappyFaceClass (100, 400);
	face2.show (g);          // Show the happy face
	face3 = new HappyFaceClass (100, 600);
	face3.show (g);          // Show the happy face
    } // paint method
} // Exer3bDrv class
