Answer Posted / rohit sah
No. It would have a number of difficult problems. Some of these are:
- Should the old instances in the memory be deleted and re-instantiated?
- How about contained classes?
- How about instances owned by the classes to be reallocated? These often have a pointer to their owner.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Is it possible to pass an object of the same class in place of object reference to the copy constructor?
What are references in c++? What is a local reference?
Define Virtual function in C++.
What is an adjust field format flag?
What are the various compound assignment operators in c++?
What is a base class?
Please explain the reference variable in c++?
What is #include cmath?
What is c++ and its uses?
What is called array?
What is the main use of c++?
Is swift a good first language?
Can you use the function fprintf() to display the output on the screen?
What is the role of static keyword for a class member variable?
What is prototype for that c string function?