06-24-2008, 05:07 PM
|
#12 (permalink)
|
|
The Acquainted
Join Date: May 2008
Posts: 175
Thanks: 9
|
PHP Code:
class Burrito extends Taco { var $wrap_shell; var $butter; var $steak; var $cheese; var $ingrediants = array(); var $burrito; function Burrito() { parent::__construct(); $this->ingredients[] = $this->wrap_shell;; $this->ingredients[] = $this->butter; $this->ingredients[] = $this->steak; $this->ingredients[] = $this->cheese; } function stealTheGoods() { unset($this->hamburger); $this->ingredients[] = $this->tomato; $this->ingredients[] = $this->sourcream; } function makeBurrito() { $this->burrito = implode('()', $this->ingredients); } function eat() { if (!empty($this->burrito)) { echo "This burrito is delicious!"; } else { echo "The burrito has not been made yet :("; } } }
Hmm... I always wondered how to uselessly waste 5 minutes... lol.
Last edited by drewbee : 06-25-2008 at 01:19 AM.
|
|
|