while i was testing php OOP features ....
try this code:
<?
class class1{
function quote(){
echo("says:'");
}
}
class class2{
function say($name,$object,$string){
print($name.$object->quote().$string."'.");
}
}
$obj1=new class1();
$obj2=new class2();
$obj2->say("descartes ",$obj1,"i think...