India's need a teacher like Durga sir. Thank you so much sir for giving the most valuable knowledge🙏😊..........
@DurgaSoftwareSolutions3 жыл бұрын
Hello Sakshi. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java with SCJP/OCJP Videos by Durga sir in the following link: goo.gl/kqvaf2
@Trading_Sopt1232 жыл бұрын
Agree
@prakherjindal5440 Жыл бұрын
personal timestamps - overriding with varargs - 10:15-11:35, 14:30-16:00 overriding with variables - 22:50-24:30 Difference between overloading and overriding - 49:00-51:30, polymorphism - 01:07:00-01:10:30, 01:12:30-01:13:20, 01:17:30-01:18:45 When we should use parent reference to hold child object - 01:21:30-01:28:50
@nishant00720084 жыл бұрын
Feel like i am in class room in front of Durga Sir. That is the charisma Durga sir has :)
@DurgaSoftwareSolutions4 жыл бұрын
Hello Nishant. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java with SCJP/OCJP Videos by Durga sir in the following link: goo.gl/kqvaf2
@kvnagendra53546 жыл бұрын
4:42 *durga sir is a suspense killer, but it improves our mental ability to think, sanath nagar, shanth nagar durga sir is very power*
@DurgaSoftwareSolutions5 жыл бұрын
Hello Nagendra. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java with SCJP/OCJP Videos by Durga sir in the following link: goo.gl/kqvaf2
@likithagunda67536 жыл бұрын
I'm really thankful to you Sir..! Fab Videos and free of cost. .U are really really great..!!
@praveen68913 жыл бұрын
if anyone wants to learn the concepts then they MUST and SHOULD watch Durga Sir videos, I am a big fan of you sir.
@DurgaSoftwareSolutions3 жыл бұрын
Hello Praveen. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java with SCJP/OCJP Videos by Durga sir in the following link: goo.gl/kqvaf2
@santanukumarsahoo10902 жыл бұрын
When I am not understood my java class tutorial then that time i think don't worry i will watch Durga sir video
@DurgaSoftwareSolutions2 жыл бұрын
Hello Santanu. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java with SCJP/OCJP Videos by Durga sir in the following link: goo.gl/kqvaf2
@Telugu__Contnent Жыл бұрын
I thought that i don't need lat 30 mins and im gonna skip it but it is the core for this video..thank you durga sir..
@MANUCRIXZ Жыл бұрын
bro iam in 2nd sem of eng can i follow these videos for doing DSA?(I have cover upto this video from 1st video)
@rahulnigam75294 жыл бұрын
Many Many Best wishes with Durga Sir... Always
@compchemistry92016 жыл бұрын
Sir your teaching is amazing. I learnt a lot from you.
@durga23_24 Жыл бұрын
Sir I can't explain my situation I just want to express gratitude,only one time is not enough 🙏🏼 hundreds times thank you sir,bcoz what u gave in free of cost no one is doing🙏🏼
@DurgaSoftwareSolutions Жыл бұрын
Hello Friend. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java with SCJP/OCJP Videos by Durga sir in the following link: goo.gl/kqvaf2
@deeproy72926 жыл бұрын
You are the god of combinations!!!
@radhikagadve2 жыл бұрын
Most Motivational Line ever : "we are able to give left and right to the interviewer in the interview room" 🤣🤣🤣🤣🤣🤣lmao funniest
@DurgaSoftwareSolutions2 жыл бұрын
Hello Radhika. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java with SCJP/OCJP Videos by Durga sir in the following link: goo.gl/kqvaf2
@BaluB-nj8xbАй бұрын
the this the punch line in interviewer room🤩🤩🤩
@rahulnigam75294 жыл бұрын
very good definition of Polymorphism ... A boys Start with Love ... :) ... We are very happy when Durga Sir told for notedown ...ha ha ha
@DurgaSoftwareSolutions4 жыл бұрын
Hello Rahul. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java with SCJP/OCJP Videos by Durga sir in the following link: goo.gl/kqvaf2
@curiosityendhere1852 жыл бұрын
5:53 Boom 💥 .. This guy is legend man.. I just shocked 😱😂
@DurgaSoftwareSolutions2 жыл бұрын
Hello Friend. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java with SCJP/OCJP Videos by Durga sir in the following link: goo.gl/kqvaf2
@akashsrivastava82266 жыл бұрын
The best teacher in the world !!!
@DurgaSoftwareSolutions6 жыл бұрын
Hello Akash. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java with SCJP/OCJP Videos by Durga sir in the following link: goo.gl/kqvaf2
@rakeshgupta75572 жыл бұрын
Beautiful defination of polymorphism never forgatable
@DurgaSoftwareSolutions2 жыл бұрын
Hello Rakesh. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java with SCJP/OCJP Videos by Durga sir in the following link: goo.gl/kqvaf2
Hello Mahesh. Thanks for your valuable feedback.It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java with SCJP/OCJP Videos by Durga sir in the following link: goo.gl/kqvaf2
@kanchannautiyal24296 жыл бұрын
Awesome. Blossum..😋😍 explanation.....
@DurgaSoftwareSolutions6 жыл бұрын
Hello Nautiyal. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java with SCJP/OCJP Videos by Durga sir in the following link: goo.gl/kqvaf2
@RahulGupta-ly2uu6 жыл бұрын
at 47:57 in 7th point of throws keyword read the property carefully and at 54:25 by solving first point sir told us its overriding instead of overloading
@kunwarmaurya20256 жыл бұрын
sir is right , it is overRiding not overLoading how it is overLoading? even method's argument type is same then how??
@johncenakiwi6 жыл бұрын
child method doesn't throw a checked exception. parent can throw whatever type of exception it wants to throw. This is still overriding.
@venkatasaiinjarapu88006 жыл бұрын
Hello There! Actually, I was also confused at the 1st time when I saw the 1st point Is that why overriding instead of overloading? Ans: Parent class method M1(int x) -- M1(int )[Method Signature] Child class method M1(int i)------ M1(int )[Method Signature] here both parent and child methods are the same signature so method overriding concept is applied. Thank You, Happy Learning :-)
@nikhilchaubey58895 жыл бұрын
Best Polymorphism explanation
@DurgaSoftwareSolutions5 жыл бұрын
Hello Nikhil. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java with SCJP/OCJP Videos by Durga sir in the following link: goo.gl/kqvaf2
@SaifKhan-tm6yh4 жыл бұрын
Big fan sir for oops concept 👍👍
@DurgaSoftwareSolutions4 жыл бұрын
Hello Saif Khan. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java with SCJP/OCJP Videos by Durga sir in the following link: goo.gl/kqvaf2
@johncenakiwi6 жыл бұрын
I think P p = new C() makes much more sense if you use it in the context of an Interface. An interface will have some methods and the child will implement (override) all those methods. When you say p.m1() where p is the parent reference and m1() is the overriden method in C, child's m1() will be called, which is dynamic binding. Now suppose in factory design pattern: 1. We have 2 classes: PizzaOrderingSytem and PizzaFactory 2. We have 1 interface : Pizza 3. We have 3 implementation classes of Pizza : ThinCrustPizza, CheeseBurstPizza & MexicanPizza 4. PizzaOrderingSytem takes in the name of the type of pizza to be ordered in the form of a String e.g., "ThinCrustPizza" 5. Now PizzaFactory.getPizza("ThinCrustPizza") is called from inside PizzaOrderingSytem , which returns the type of pizza and we perform operations using methods like p.bake(), p.addToppings() 6. In PizzaFactory's getPizza(), using switch case, we return the new Object of the pizza which has been ordered, for e.g return new ThinCrustPizza(); This is the most important part. THE REFERENCE THAT YOU CAN USE TO STORE ANY TYPE OF PIZZA IS Pizza p; Now, on this p, you can call any of the child' methods you want. This example is heavily inspired by Head First Design Patterns books' Factory Design pattern chapter.
@राजनगोंगल Жыл бұрын
👍👍👍👍👍👍
@harimutyapuwar5257 Жыл бұрын
Excellent
@DurgaSoftwareSolutions Жыл бұрын
Hello Hari. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java with SCJP/OCJP Videos by Durga sir in the following link: goo.gl/kqvaf2
@pratiktekade91262 жыл бұрын
Amazing
@DurgaSoftwareSolutions2 жыл бұрын
Hello Pratik. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java with SCJP/OCJP Videos by Durga sir in the following link: goo.gl/kqvaf2
@pratiktekade91262 жыл бұрын
@@DurgaSoftwareSolutions are there practice sessions for core java?
@amansinghrajawat1307 Жыл бұрын
@1:00:00 Polymorphism
@tejeswarpala28412 жыл бұрын
I got clear clarity. 🙂
@DurgaSoftwareSolutions2 жыл бұрын
Hello Friend. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java with SCJP/OCJP Videos by Durga sir in the following link: goo.gl/kqvaf2
@subhakar90153 жыл бұрын
I think 4th piller of OOPs is DURGA sir then only it will stand STRONG 🙏🙏
@DurgaSoftwareSolutions3 жыл бұрын
Hello Subhakar. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java with SCJP/OCJP Videos by Durga sir in the following link: goo.gl/kqvaf2
@satyasainadh58984 жыл бұрын
Sir 6 point at riding side i think access modifier should be same or less restrictive access modifier have to use as said in pervious videos🤔🤔
@kattakapilkumar7 жыл бұрын
super sir.really help full
@rahulranjan50674 жыл бұрын
Sir Can we consider the Abstraction as 4th pillar of OOPS? Because it reduces the complexity of the code.
@DurgaSoftwareSolutions4 жыл бұрын
Hello Rahul. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@prasadmahakal23612 жыл бұрын
Thanks alot Guruji.
@kiranvrao97144 жыл бұрын
Very helpfull
@DurgaSoftwareSolutions4 жыл бұрын
Hello Kiran. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java with SCJP/OCJP Videos by Durga sir in the following link: goo.gl/kqvaf2
@yoyovermadon45225 жыл бұрын
awesome tutorial..................No objections.................Only objection is at end of lecture when you say, you don't have experiance for stay wid that definition. (Very funny)
@MrRoy-f4x20 күн бұрын
can anybody tell me where is durga sir rightnow, is he still teching? As there is no such current video of durga sir.
@DurgaSoftwareSolutions20 күн бұрын
Hello Friend. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@Yashkumar-m053 ай бұрын
👍
@ranveervaghela70307 ай бұрын
Completed watching on 12-05-2024 at 5.52 PM
@prakharanand77783 жыл бұрын
I have a doubt. When we use P p = C c( ); p.m1( ); in overriding how are we able to access child class C's m1( ) method if we can't access child class method here? I know overriding follows method resolution based on runtime object, but this means that parent reference child object rule fails here?? Please explain.
@DurgaSoftwareSolutions3 жыл бұрын
Hello Anand. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@hardiknpandya Жыл бұрын
Rule Doesn't fail brother.... you can use child method m1 using p because its part of parent class also... if child contain m2 method.. you can't call that using p (parent reference) because it's not part of parent class...
@vishalgaikwad8735 жыл бұрын
16.09 output is Parent Child Parent
@justforkids17 жыл бұрын
Hi, i am having concept of that overloading always takes place in same class but for var-arg example for over-riding which turns into overloading for child parent class.so is this a right behaviour? Can overloading takes place in parent child class?
@vikrantharne85767 жыл бұрын
by default parent class methods are available to child...again child is having same method with different parameters so makes it overloading...dnt know exact answer but i think this may be concept behind it..
@radhikagadve2 жыл бұрын
the child class C already has access to parent class vararg method, so consider by default the child class has the method in it (even though u dont see it in the code just imagine this as virtual section) and now another method with same name and diff arguments is defined in the same class, so as you already know this is what you call overloading.
@saibhavaniande11402 жыл бұрын
tq sooo much sir
@leacoder29038 жыл бұрын
completed. thanks sir.
@taniyachowdhury83758 жыл бұрын
hi sir, if parent class method is normal method and child class is var args method the output is parent,parent,parent...what is the reason behind it? because of least priority of var args method? Kindly reply
@leacoder29038 жыл бұрын
hii Taniya yes, as the parent class methods by default available to the child so it checks the precedence. you are right
@leacoder29038 жыл бұрын
you have got nice doubt
@leacoder29038 жыл бұрын
it is overloading right.so, compiler is going to handle the method resolution based on the reference type. and if that reference type is Parent, you get output parent and if that reference type is Child then in child class.... parent class method is also available that is normal method and takes precedence. so output is parent
@taniyachowdhury83758 жыл бұрын
Thank You Sir
@tobyflenderson71766 жыл бұрын
When you overload the m1() as m1(int... x) and m1(int x) and call m1(2) with one argument, then the normal m1(int x) gets called. So when you have a m1(int x) in parent class, it gets extended to the child class and when you do P p1 = new Child() and p1.m1(3); the inherited normal method of the parent gets called because there's only one argument
@lakshmiprabha1614 жыл бұрын
Good explanation sir. I have a doubt that, var arg method has less priority than normal method (cz it is old method) in method overloading. Like here in overriding w.r.t var arg method you said o/p will be parent. How is this possible sir, here also it is a method overloading , so the o/p will be child only know? Its confusing sir. Could you help me to resolve it?
@DurgaSoftwareSolutions4 жыл бұрын
Hello Lakshmi. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@krishnaverma77447 жыл бұрын
Hi sir I just have one doubt in var arg method example, As u said sir var arg method will be only overriden by var arg method and for this first example of the video u said like it is overloading but sur if it is overloading then also it has a method in child class which accpets int argument? So why parent method getting called? If a method which takes int arg and is more specific also so child method should get called?
@lakshmiprabha1614 жыл бұрын
Hi sir, if you clarified this doubt? Am also having same doubt right now. Could you pls explaon me
@suryaveersingh35934 жыл бұрын
Sir which compiler is this ?
@DurgaSoftwareSolutions4 жыл бұрын
Hello Suryaveer. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@sateeshbabu57927 жыл бұрын
super sir
@srikanthy71646 жыл бұрын
wt is meant by co varient return types
@zippy.gaurav6 жыл бұрын
If the parent class method has a return type of Object then the overriding method in it's child class should have a return type that is a child of the parent method return type. These return types are co-variant return types.
@krupabhavsar38275 жыл бұрын
Last example 😅😅😅😛😛😛
@sankalparora93742 жыл бұрын
Sometimes I wonder - who are these students which are learning. I mean I know there will be a mix of school students, college student, and working professionals. But who would be in majority ?
@DurgaSoftwareSolutions2 жыл бұрын
Hello Sankalp. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@johncenakiwi6 жыл бұрын
This still doesn't explain why P p = new C() is used. Object 0 = l.get(0) makes sense, but why use P p = new C()?
@DurgaSoftwareSolutions6 жыл бұрын
Hello Rishabh. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627,7207212427/28
@johncenakiwi6 жыл бұрын
@@navyabalram695 I think P p = new C() makes much more sense if you use it in the context of an Interface. An interface will have some methods and the child will implement (override) all those methods. When you say p.m1() where p is the parent reference and m1() is the overriden method in C, child's m1() will be called, which is dynamic binding. Now suppose in factory design pattern: 1. We have 2 classes: PizzaOrderingSytem and PizzaFactory 2. We have 1 interface : Pizza 3. We have 3 implementation classes of Pizza : ThinCrustPizza, CheeseBurstPizza & MexicanPizza 4. PizzaOrderingSytem takes in the name of the type of pizza to be ordered in the form of a String e.g., "ThinCrustPizza" 5. Now PizzaFactory.getPizza("ThinCrustPizza") is called, which returns the type of pizza and we perform operations using methods like p.bake(), p.addToppings() 6. In PizzaFactory's getPizza(), using switch case, we return the new Object of the pizza which has been ordered, for e.g return new ThinCrustPizza(); This is the most important part. THE REFERENCE THAT YOU CAN USE TO STORE ANY TYPE OF PIZZA IS Pizza p; Now, on this p, you can call any of the child' methods you want. This example is heavily inspired by Head First Design Patterns book's Factory Design pattern chapter.
@AyushMo4 жыл бұрын
@@johncenakiwi The answer is polymorphism in case you're still wondering. I don't know who's asking and who's answering, looks like both accounts are yours lol, but anyway, Using a parent reference to hold a child class object is all about polymorphism.
@c.danielpremkumar84956 жыл бұрын
What does the letter 'S' stand for in OOPS ?
@saikrishna22356 жыл бұрын
its Object Oriented Programming System
@knowledgekumar36236 жыл бұрын
system
@balla40044 жыл бұрын
@@saikrishna2235 and. @knowledge kumar thanku!!
@AyushMo4 жыл бұрын
Okay, so let's get this straight. Parent p = new Parent(); and then p.m1(something) will call m1() of P Child c = new Child(); and then c.m1(something) is overloading, and now selects best match from child and parents’ method, and that is matched. Finally, Parent p = new Child(); this one is where ONLY the parent’s method can be called, early binding. Now go back, everything should make sense In the example from the video, if the parent had m1(int) and child had m1(int...), then the output would be parent, parent, parent. I saw a few comments down below asking how, hopefully this should explain it.
@DurgaSoftwareSolutions4 жыл бұрын
Hello Ritu. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@jvsnyc4 жыл бұрын
I don't think any time that polymorphism is in play that "early binding" is happening. Early binding means that the code that runs isn't affected by the actual type of the object, but only chosen statically by the compiler at compile time. If the parent overload selected doesn't have a child overrride that matches it, then yeah, static binding rules. If it does, the parent method overload will be matched, but the code that will be called at runtime will depend on the actual runtime type of the object that is referred to at the time.