copy constructors ?? what are they ?
Xufyan -4 Posting Whiz
Recommended Answers
Jump to PostOr you could use the clone() method to make a copy of an object.
Jump to PostA problem with using a constructor to make a "copy" of an instance of a class is that there could be other methods that had been called that have changed the contents of the class. Using the class's constructor wouldn't get these changes.
All 5 Replies

coil
Xufyan -4 Posting Whiz
NormR1 563 Posting Sage Team Colleague

coil
NormR1 563 Posting Sage Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.