if u write a class do u write Assignment operator and copy
constructor
Answer / sachin
Compiler provide the assignment operator/ copy constructor
by default. The assignment operator and copy constructor do
the bit wise copy of the object. If user want to do the
member wise copy(ex:allocating the memory from the heap)
for the members, one can write his/her own assignment
operator/ copy constructor.
Is This Answer Correct ? | 11 Yes | 0 No |
What is overriding in oops?
What are oops functions?
What is a template?
What is the default size allocated for array in the statement if size not specified " int a[] "
There are 2 empty jars of 5 and 3 liters capacity. And a river is flowing besides. I want to measure 4 liters of wanter using these 2 jars. How do you do this?
Why static functions always uses static variables?
Can we override main method?
What is design patterns in C++?
What is abstraction example?
Can abstract class have normal methods?
What is sub classing in c++?
Why do pointers exist?