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
Write a program to sort the number with different sorts in one program ??
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
Why polymorphism is used in oops?
What is object and example?
what are the realtime excercises in C++?
What is overriding in oops?
What is the types of inheritance?
officer say me - i am offered to a smoking , then what can you say
Why is static class not inherited?
What is overriding in oop?
What do you mean by Encapsulation?
What is class and object with example?
What is the main feature of oop?
What is oops with example?
Get me a number puzzle game-program