Dr. Hristina Kostadinova
Dr. Mariyana Raykova, Assist. Prof.
New Bulgarian University
Abstract. The programme realization topic of the ways to copy cloning objects in object-oriented software projects is presented in the paper. The stress is on the subject of shallow and deep copy or the situations in which the copied objects have common resources with the original one. In many cases, programmers need to switch from one technology to another, which leads to the need of knowing the details of the implementation of a programme functionality in more than one programming languages. Different approaches for the implementation of the deep copy are demonstrated with examples in C++ and Java programming languages. Advantages and disadvantages of the presented methods are discussed.
Keywords: shallow copy; deep copy; C++; Java
