Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package
- {
- public class Puppy extends Animal
- {
- public function Puppy(n:String)
- {
- super();
- _petName = n + " the Puppy";
- }
- override public function eat():void {
- trace("It's BACON!!!");
- }
- override public function fun():void {
- trace("Ball, ball, ball, ball... BALL!!!");
- }
- override public function rest():void {
- trace("There's nothing like going home to a nice, warm bed.");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement