What is the difference between shallow copy and deep copy?
A shallow copy constructs a new compound object and then (to the extent possible) inserts references into it to the objects found in the original. A deep copy constructs a new compound object and then, recursively, inserts copies into it of the objects found in the original.
Is This Answer Correct ? | 0 Yes | 0 No |
How a new element can be added or pushed in a stack?
Differentiate between a deep copy and a shallow copy?
What do you mean by function overriding & function overloading in c++?
What is pure virtual function? Or what is abstract class?
What is Name Decoration?
What is the rule of three?
What is the difference between a type-specific template friend class and a general template friend class?
Is c++ free?
string somestring ; Which of the following choices will convert a standard C++ string object "somestring" to a C string? a) Copy.somestring () ; b) somestring.c_str () c) &somestring [1] d) std::cstring (somestring) e) (char *) somestring
What are single and multiple inheritances in c++?
class X { private: int a; protected: X(){cout<<"X constructor was called"<<endl;} ~X(){cout<<"X destructor was called"<<endl} }; Referring to the code above, which one of the following statements regarding "X" is TRUE? a) X is an abstract class. b) Only subclasses of X may create X objects. c) Instances of X cannot be created. d) X objects can only be created using the default copy constructor. e) Only friends can create instances of X objects.
What is vector string in c++?