what is copy constructor in java?
Answers
Answered by
2
Answer:
A copy constructor is a constuctor that creates a new object of the same class and initializes each instance variable of newly created object with corresponding instance variables of the existing object passed as argument.
Similar questions