write syntax and example for copy constructor??
Answers
Answered by
1
Answer:
A copy constructor is a member function which initializes an object using another object of the same class. A copy constructor has the following general function prototype: ClassName (const ClassName &old_obj); Following is a simple example of copy constructor.
Answered by
0
Answer:
hshshdhdzrurijebdvdvvdvdbdbdbbe
Explanation:
hshshdhhddhhe
Similar questions