clone.Object

0th

Percentile

Clones an Object

Creates an identical copy of the object and returns a reference to the new object.

Keywords
methods, internal, programming
Usage
"clone"(this, ...)
Arguments
...
Not used.
Details

Please note that no constructors are called during the creation of the clone and neither is any static class code called.

Value

A reference to the new object.

See Also

For more information see Object.

Aliases
  • clone.Object
  • Object.clone
  • clone,Object-method
Examples
  o1 <- Object()
  o2 <- clone(o1)

  print(equals(o1, o2))
Documentation reproduced from package R.oo, version 1.20.0, License: LGPL (>= 2.1)

Community examples

Looks like there are no examples yet.