Hi guys, thanks for the replies, My Curiosity for copy constructor began when i took a look at the following example and never having used a copy constructor i got curious, I am posting the code below
I understand that a copy constructor helps in creating a identical copy of instance but why not rather create a new instance itself, What necessitates its use below is the code, I understand its a bean meant for setting and getting attributes but whats with the overriding of all those methods. This list basically gets put into a ArrayList