A copy constructor is a constructor that takes an object of the same type as the object that's to be constructed. This constructor then initializes itself using the values of this other instance.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | copy(Object
the object to be copied object)Implements com. |
| CopyCtorCopier | back to summary |
|---|---|
| public CopyCtorCopier() | |
| copy | back to summary |
|---|---|
| public Object copy(Object object) Implements com. Doc from com. Return an object that's logically a copy of the given object.
| |