In this version, we define a subclass of CyberPet named DrawablePet. This is just like a normal CyberPet except that it defines the Drawable and Scalable interfaces. These interfaces define the draw() and resize() methods, which allow us to draw and resize the pet's image dynamically, rather than relying on a static image that's stored in a GIF file.
DrawablePetApplet.java || CyberPet.java || DrawablePet.java || Drawable.java || Scalable.java