CODE
class eyes
{
var $name;
var $color;
var $target;
function focus($ecolor,$etarget)
{
$this->target=$etarget;
$this->color=$ecolor;
echo $this->target;
echo $this->color;
}
}
$redeye= new fruit("red","Sun");
$greeneye= new fruit("green",$redyeye);
{
var $name;
var $color;
var $target;
function focus($ecolor,$etarget)
{
$this->target=$etarget;
$this->color=$ecolor;
echo $this->target;
echo $this->color;
}
}
$redeye= new fruit("red","Sun");
$greeneye= new fruit("green",$redyeye);
I'm trying to test if i am accessing this the correct way. i want the green eye to focus on the whole redeye object.
