What is the role of copy constructor? Is it provided by the language itself, then what is the need to make it explicitly? Justify it using appropriate example.

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter2: Elements Of High-quality Programs
Section: Chapter Questions
Problem 9RQ
icon
Related questions
Question
100%

What is the role of copy constructor? Is it provided by the language itself, then what is the need to make it explicitly? Justify it using appropriate example.

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer