Computer Science, asked by vikrams99579, 3 months ago

write syntax and example for copy constructor??​

Answers

Answered by pranjal24966
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 bhavishyqkqtaria121
0

Answer:

hshshdhdzrurijebdvdvvdvdbdbdbbe

Explanation:

hshshdhhddhhe

Similar questions