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 |
1. Define a class.
Program to print 0 to 9 in cross order
What is overloading in oops?
what is the difference between inter class and abstract class...?
write a C++ program for booking using constructor and destructor.
What is Object and Class? What are the differences between them?
143.what is oops principles?
2. Give the different notations for the class.\
what is the difference between <stdio.h>and "stdio.h"?
what is virtual function?
26 Answers Aspire, HP, Infosys, RoboSoft, TCS,
Can a destructor be called directly?
What is difference between inheritance and polymorphism?