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
Geography,
5 months ago
Physics,
11 months ago
Chemistry,
11 months ago
India Languages,
1 year ago
Biology,
1 year ago