How do we implement cloning for a class? In what scenario, can we do that?
Is there any relation between implementations of cloning and equals()?
Is there any relation between implementations of cloning and equals()?
How do we implement cloning for a class?
In what scenario, can we do that?
Is there any relation between implementations of cloning and equals()?
Originally posted by Naina Si:
How does that work for protected classes?
Can we override the clone() method even for final & abstract classes as well?