if u write a class do u write Assignment operator and copy
constructor
Answer Posted / 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 |
Post New Answer View All Answers
why reinterpret cast is considered dangerous?
How can you overcome the diamond problem in inheritance?
What is coupling in oops?
Is enum a class?
Why is encapsulation used?
What is object and class in oops?
What is polymorphism in oop example?
which feature are not hold visual basic of oop?
Can we override main method?
Can we create object of abstract class?
Whats is abstraction in oops?
#include
What do you mean by abstraction?
What are different oops concepts?
what type of question are asked in thoughtworks pair programming round ?