Constructing an instance of ';
echo get_class($this)."\n";
$this->Donkey = $foo;
echo '
My Donkey is ';
echo $this->Donkey;
echo "\n";
}
// An ordinary method
public function vet() {
echo 'In method '.__METHOD__;
$this->Donkey = 'Healthy';
echo '
My Donkey is ';
echo $this->Donkey;
echo "
\n";
}
}
// Main program
echo "OOP test
\n";
$bar=new asbtest('Unwell');
$bar->vet();
echo "Job done!
\n";
?>