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
How to call a non virtual function in the derived class by using base class pointer
what are the ways in which a constructors can be called?
Where You Can Use Interface in your Project
2. Give the different notations for the class.\
What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?
How long to learn object oriented programming?
Why is static class not inherited?
What is the difference between a mixin and inheritance?
write a C++ program for booking using constructor and destructor.
What does and I oop mean?
What is the real time example of encapsulation?
what are the realtime excercises in C++?
What is class and object with example?
i am getting an of the type can not convert int to int *. to overcome this problem what we should do?
can we make game by using c