Object-oriented_2-13 multiple choice questions

The correct option for the following code to run is () (choose one)

class Test{
Public $str='abc';
}
$a=new Test();
$b=$a;
$a->str='456';
var_dump($a) ;
echo "</br>";
var_dump($b) ;

class Test{
Public $str='abc';
}
$a=new Test();
$b=$a;
$a->str='456';
var_dump($a) ;
echo "</br>";
var_dump($b) ;
// object(Test)#1 (1) { ["str"]=> string(3) "456" } 
// object(Test)#1 (1) { ["str"]=> string(3) "456" }

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324888813&siteId=291194637