copy constructor
All > Technology > Programming > Java
- A constructor taking a single argument of the same class. For instance
public class Point { // Use p's attributes to initialize this object. public Point(Point p){ ... } ... }The argument is used to define the initial values of the new object's attributes.
David J. Barnes - Cite This Source - This Definition - anonymous array, anonymous object, array initializer, call-by-value, deep copy, shallow copy, subarray