Can we make a class copy constructor virtual in C++

No you can’t, constructors can’t be virtual.

C++03 – 12.1 Constructors

4) A constructor shall not be virtual (10.3) or static (9.4). […]

If you need something like this, you can look up the virtual constructor idiom here.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)