What is difference between shallow copy and deep copy? Which is default?
Default version of clone method creates the shallow copy of an object. To create the deep copy of an object, you have to override clone method. Shallow copy is preferred if an object has only primitive fields. Deep copy is preferred if an object has references to other objects as fields.
| Is This Answer Correct ? | 0 Yes | 0 No |
Can you please explain the difference between static and dynamic binding of functions?
In which memory a class gets stored(in heap /in stack)? And why??
How do you clear a buffer in c++?
write a c++ program to create class student having datamember name,Roll_no,age,and branch intilcization all the member using constructor print the all the details on the screen.
What do you mean by persistent and non persistent objects?
check whether a no is prime or not.
What is purpose of abstract class?
What is the arrow operator in c++?
When is a template better solution than a base class??
differance between copy & clon
What is the use of bit fields in structure declaration?
Do class declarations end with a semicolon? Do class method definitions?