Quantcast
Channel: Ashish Khandelwal
Viewing all articles
Browse latest Browse all 100

Shallow copy and Deep copy (in prototype patterns)

$
0
0
There are two types of cloning: Shallow cloning: In shallow copy only that object is cloned, any objects containing in that object is not cloned. For instance consider we have a customer ‘ClsCustomer’ class and we have an address ‘ClsAddress’ class aggregated inside the customer class. The cloning will be done only for customer class [...]

Viewing all articles
Browse latest Browse all 100

Trending Articles