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 [...]
↧