Examveda
Examveda

Which one of the following statements is true ?
class CopyMe {}
$first = new CopyMe();
$second = $first;

A. In PHP 4: $second and $first are 2 distinct objects

B. In PHP 5: $second and $first are 2 distinct objects

C. In PHP 4: $second and $first refer to one object

D. None of the mentioned

Answer: Option A


This Question Belongs to PHP >> Object Oriented Concept

Join The Discussion

Related Questions on Object Oriented Concept