> array ( 'id' => '74', 'username' => 'likohat1', 'ip' => '122.173.115.103', 'email' => 'likosocial@gmail.com', 'message' => NULL, 'expire' => NULL, 'ban_creator' => '2', ), ); ?> Which one of the following is the right way to clone an object? / Quiz Questions / Global Web Forum

You are not logged in.

#1 2017-12-07 15:07:17

shakeel123
User RankUser RankUser RankUser RankUser RankUser Rank
Moderator
Registered: 2017-09-21
Posts: 50,796

Which one of the following is the right way to clone an object?

Software Engineering Exams Quizzes MCQs Quizzes PHP Online MCQs Test

Question:
Which one of the following is the right way to clone an object?

Option A):
destinationObject = clone(targetObject);
Option B):
_clone(targetObject);
Option C):
destinationObject = clone targetObject;
Option D):
destinationObject = _clone(targetObject);

Correct Answer is Option C):
destinationObject = clone targetObject;


Top Exams Quizzes MCQs And Interview Questions With Answers Forum:
http://www.globalguideline.com/forum/

2017-12-07 15:07:17

Advertisement
Ads By Google

Re: Which one of the following is the right way to clone an object?



Board footer