clone() method
l
Add method
public MyClass clone()
{
É
}
l
Use method
MyClass newObj = orig.clone();