if u write a class do u write Assignment operator and copy
constructor



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

Post New Answer

More OOPS Interview Questions

Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.

0 Answers  


What is destructor in oop?

0 Answers  


what is overloading

3 Answers   MindCracker,


What is oops with example?

0 Answers  


What is difference between function overloading and overriding?

1 Answers   emc2,


what is the size of an empty class

12 Answers   Wipro,


any one please tell me the purpose of operator overloading

0 Answers   Amazon,


What are the four main oops concepts?

1 Answers  


what is the main difference between sizeof() operator in c and c++

3 Answers  


What are oops methods?

0 Answers  


What is abstraction?

9 Answers  


What is a null tree?

0 Answers  


Categories