S

Shyam Dubey • 3.70K Points
Extraordinary

Q. What does the clone() method do?

  • (A) Copies a reference
  • (B) Moves the value
  • (C) Creates a deep copy of the value
  • (D) Deletes the value
  • Correct Answer - Option(C)
  • Views: 8
  • Filed under category Rust
  • Hashtags:

Explanation by: Shyam Dubey
clone() creates a deep copy of a value.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.