Computer Science, asked by rupanjanasaha04, 11 months ago

what is copy constructor in java?

Answers

Answered by mathu527
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