InterviewSolution
Saved Bookmarks
| 1. |
Which one of the following is the right way to clone an object?(a) _clone(targetObject);(b) destinationObject = clone targetObject;(c) destinationObject = _clone(targetObject);(d) destinationObject = clone(targetObject);This question was addressed to me in exam.I'm obligated to ask this question of Advanced Object-Oriented PHP topic in chapter Object-Oriented PHP of PHP |
|
Answer» Correct choice is (b) destinationObject = clone targetObject; |
|