Object cloning in OOP | EP=23 3rd SEM CS8392 | Quick Through |tamil

Опубликовано: 05 Февраль 2026
на канале: Quick Through
718
16

********** Welcome to Our Youtube Channel *************



OBJECT ORIENTED PROGRAMMINGUNIT II
INHERITANCE AND INTERFACES
2.6 Object cloning




OBJECT ORIENTED PROGRAMMINGUNIT II INHERITANCE AND INTERFACES2.6 Object cloning
2UNIT II INHERITANCE AND INTERFACES●Inheritance –Super classes-sub classes –Protected members ●–constructors in sub classes - the Object class ●–abstract classes and methods -final methods and classes ●–Interfaces –defining an interface, implementing interface, ●differences between classes and interfaces and extending interfaces ●-Object cloning -inner classes, ArrayLists -Strings
3Object cloning●Object cloning refers to creation of exact copy of an object. It creates a new instance of the class of current object and initializes all its fields with exactly the contents of the corre-sponding fields of this object. ●In Java, there is no operator to create copy of an object. Unlike C++, in Java, if we use assignment operator then it will create a copy of reference variable and not the object.
4creating a copy using clone() method●The class whose object’s copy is to be made must have a public clone method in it or in one of its parent class. Every class that implements clone() should call super.clone() to obtain the cloned object reference. ●The class must also implement java.lang.Cloneable interface whose object clone we want to create otherwise it will throw CloneNotSupportedException when clone method is called on that class’s object.
5types of Object cloning●Deep Copy ●Shallow Copy







you can also participate and helps us to increase the quality of content Through donations all funds helps to our higher education
Link ; https://www.paypal.me/kraiseprince


details and step by step explanation Telegram channel link
E-learners and researchers room

https://t.me/QuickThrough

-------------------------------------------------------

Copyrights: QuickThrough 2020
For more video subscribe to your channel


DISCLAIMER: " THIS VIDEO IS ONLY FOR EDUCATION PURPOSE AND WE DON'T PROMOTE ANY ILLEGAL ACTIVITIES USING HACKING "


NOTE: " THIS CHANNEL DOESN'T CLAIMS ANY RESPONSIBILITY FOR THOSE ILLEGAL ACTIVITIES"


tags:-
data structures course,java data structure,data structures and algorithms tutorial,data structues,algorithms tutorial,crashcourse,struct,red-black trees,data structure and algorithms,linked list in data structure,queue data structure,tree in data structure,data structure tutorials,learn data structures,data structure and algorithm,queue operations in data structure,enqueue and dequeue in data structure,tree data structure,c data structures,data structure queue