Creates a new instance of the same class as this object.

# S3 method for class 'Object'
newInstance(this, ...)

Arguments

...

Arguments passed to the constructor of the corresponding Object class.

Value

Returns a reference to an instance of Object or a subclass thereof.

Author

Henrik Bengtsson

See also

newInstance.Class(). newInstance.BasicObject(). For more information see Object.