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 polymorpsim? what are its types?
why destructor is not over loaded?
Can we have inheritance without polymorphism?
what is diff between .net 1.1 and .net 2.0
how to swap the variables without using temp and operators
What is OOPS and How it is different from Procedural Programming ?
23 Answers HP, Infosys, Thyrocare,
what is main difference between object oriented object base
what's the basic's in dot net
How do you explain polymorphism?
What is the point of polymorphism?
Why static functions always uses static variables?
What is the correct syntax for inheritance? 1) class aclass : public superclass 2) class aclass inherit superclass 3) class aclass <-superclass