What is the difference between a shallow copy and a deep copy?
Answers were Sorted based on User's Feedback
Answer / nashiinformaticssolutions
• Shallow Copy: Copies memory addresses. Changes in one object affect the other.
• Deep Copy: Creates a new copy of the actual data, independent of the original.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / glibwaresoftsolutions
• Shallow Copy: Copies memory addresses. Changes in one object affect the other.
• Deep Copy: Creates a new copy of the actual data, independent of the original.
| Is This Answer Correct ? | 0 Yes | 0 No |
• Shallow Copy: Copies memory addresses. Changes in one object affect the other.
• Deep Copy: Creates a new copy of the actual data, independent of the original
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain virtual functions in C++.
Define macro.
Mention the ways in which parameterized can be invoked.
What is the Diffrence between a "assignment operator" and a "copy constructor"?
what are Access specifiers in C++ class? What are the types?
C is to C++ as 1 is to a) What the heck b) 2 c) 10
In c++, what is the difference between method overloading and method overriding?
Write a program using shift_half( ) function to shift the elements of first half array to second half and vice versa.
What are the vectors in c++?
Write a single instruction that will store an EVEN random integer between 54 and 212 inclusive in the variable myran. (NOTE only generate EVEN random numbers)
When is a template a better solution than a base class?
What is Memory Alignment?