Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Which method is used to tweak an object’s cloning behavior?

a) clone()
b) _clone()
c) _clone
d) object_clone()

Answer: b
Explanation: A copy of an object is created by using the clone keyword, which calls the object’s __clone() method.

Join The Discussion