Advertisement
Guest User

Puppy Class

a guest
Jul 14th, 2013
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package
  2. {
  3.     public class Puppy extends Animal
  4.     {
  5.         public function Puppy(n:String)
  6.         {
  7.             super();
  8.             _petName = n + " the Puppy";
  9.         }
  10.        
  11.         override public function eat():void {
  12.             trace("It's BACON!!!");
  13.         }
  14.        
  15.         override public function fun():void {
  16.             trace("Ball, ball, ball, ball... BALL!!!");
  17.         }
  18.        
  19.         override public function rest():void {
  20.             trace("There's nothing like going home to a nice, warm bed.");
  21.         }
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement