Which One Of The Following Is The Right Way To Clone An Object #103
Which one of the following is the right way to clone an object?
This multiple choice question (MCQ) is related to the book/course gs gs107 PHP: Hypertext Preprocessor. It can also be found in gs gs107 PHP OOPs - PHP OOPs Advanced - Quiz No.1.
Which one of the following is the right way to clone an object?
_clone(targetObject);
destinationObject = clone targetObject;
destinationObject = _clone(targetObject);
destinationObject = clone(targetObject);