at the end of the video, constructor vechi object ah clone panikalam nu soninga...nama en interface and deep copy la pananum.....bcuz when compare to this, copy constructor easy ah iruke..when to use copy constructor and cloneable interface?
Mam department class eruku mam athu eppudi student classla department object create pannringa athum without relations mam antha maru ennoru classku object create pannalama mam appdi panna athu name ena mam??confusa eruku mam
(Department)s.dept.clone(); ah ethukku s.dept la store panringa. Ithuvaraikkum neenga( Department d , Student s) inthamaari classku object create panni thaanae store pannuninga akka . rendukkum enna difference and also s.dept.clone(); ithuvaraikkum oru object ah vechi thaanae oru methodah invoke pannuninga but inga rendu objectah vechi clone methodah invoke pannirukinga akka Iam very much confused because Iam a mechanical student
inside student class i need to store department. thats why we have dept object in the class. For your first question, I am showing just another way of storing the object or how to store a copy of another object. clone method has to be invoked for dept object right? dept object is got by s.dept. so only we have s.dept.clone().
this video explains a way better than my college professor
Super explaination
Akka please data structure and algorithm poduga..!!! I need your help..!!
Akka spring concept and servlet with jsp concept solli thaanga
at the end of the video, constructor vechi object ah clone panikalam nu soninga...nama en interface and deep copy la pananum.....bcuz when compare to this, copy constructor easy ah iruke..when to use copy constructor and cloneable interface?
when u have inherited class, u have to do deep copy.
@@LogicFirstTamil thanks
Instead of cloning using copy constructor is the best way yo practice and also reduce runtime and exceptions ...am i right mam?
Mam department class eruku mam athu eppudi student classla department object create pannringa athum without relations mam antha maru ennoru classku object create pannalama mam appdi panna athu name ena mam??confusa eruku mam
u can create objects anywhere u want if it is visible. not just in main. that is the purpose of creating class. to use objects wen needed.
@@LogicFirstTamil so far i thought objects only create in main method mam👍👍👍👍 thanks mam..
@Logic First Tamil . Mam...How many classes are there to finish OOPS Concept?
m not very sure. around 10
@@LogicFirstTamil TanQ so much Mam... Pls do more videos and upload quickly...🙌🏻
(Department)s.dept.clone(); ah ethukku s.dept la store panringa. Ithuvaraikkum neenga( Department d , Student s) inthamaari classku object create panni thaanae store pannuninga akka . rendukkum enna difference and also
s.dept.clone(); ithuvaraikkum oru object ah vechi thaanae oru methodah invoke pannuninga but inga rendu objectah vechi clone methodah invoke pannirukinga akka
Iam very much confused because Iam a mechanical student
inside student class i need to store department. thats why we have dept object in the class. For your first question, I am showing just another way of storing the object or how to store a copy of another object. clone method has to be invoked for dept object right? dept object is got by s.dept. so only we have s.dept.clone().
@@LogicFirstTamil appo return s.dept nu thaanae kodukanum akka
👌👌👌
Where can I get code ?
❤️
Student class kulla Department dept;ன்னு kodukaama Student class kulla irukka display method kulla dept.display ();ன்னு invoke panna mudiyuma sis
can u invoke a method without the object of the class? these kind of questions, u shud try by yourself and find out wats happening
@@LogicFirstTamil Department dept=new Department (1,"physics "); nu main method kulla object create pannirukom illa akka
@@mkd5135 appo u can invoke from main only. or u have to pass tat object to the display method of student class and then invoke
u need to understand more abt scope of variables and objects.
Oru mannum puriyala
Konjam kastama iruku mam intha concept