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
What are the 4 main oop principles?
INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?
When not to use object oriented programming?
How do you achieve polymorphism?
#include
i=20;k=0;
for(j=1;k-i;k+=j<10?4:3)
{
cout< What is super in oop? is there any choice in opting subjects like 4 out of 7 Give two or more real cenario of virtual function and
vertual object Get me a number puzzle game-program what is the sylabus for priliminaries? What is a class in oop? Why do we need polymorphism in c#? What is basic concept of oop? what is graphics