You are the best Java teacher on KZbin. I subscribed to this channel and am learning one concept every day. You explain each concept in a very clear and concise but get to the point which helps me to learn quickly.
@SourabhSingh-zx1fh27 күн бұрын
True
@LekhotlaMichaelLetsie Жыл бұрын
That John Cena reference was on another level.there is no way i am going to forget super method after that 😁
@deepthimr8555 Жыл бұрын
i have seen multiple videos for constructors and you always be my favorite. the kind of ease in your teaching is amazing and the humor that you add in between help us remember the key points. Thank you so much sir
@divakarpareek9466 Жыл бұрын
This is the best explanation of so many scenarios with a crisp and clear explanation
@Luffy_2804 Жыл бұрын
9:04 best explanation was waiting for this concept QUALITY>>>QUANTITY
@jagadeeshranganath65186 күн бұрын
Your explanation of this() and super() was easy to follow and understand. Thank you! 👏
@sruthigudmella3322 Жыл бұрын
You are an amazing teacher but pls reorder the playlist!
@MFM8883210 ай бұрын
This is actually top-notch education, thank you for sharing so kindly your wisdom!
@GovinthanKSAIML Жыл бұрын
Grateful to have found this channel, your way of explaining concepts is exactly what I've been looking for, keep up the good work Mr.Navin 👍
@DurgaSaathwikKolla4 ай бұрын
i getting fall in love with this subject subject 😃😍
@ijharmulani97125 ай бұрын
What did I just watch, was it this simple the whole time , damn !!!, Awesome explaination
@sridharmurari3007 Жыл бұрын
What a way to teach and share knowledge ....!
@neonyt6739Ай бұрын
the way he explain the concept of inheritane no one can explain it! i love to understand concept from him
@ajayghode3602Ай бұрын
Thank you...Enjoyed!! This() will execute the constructor of the same class.super() will execute the super class
@krishnapatel-ys7nk11 ай бұрын
Hi thanks for sharing such an amazing knowledge. But you need to reorder it ..this video should be after inheritance video... So plz reorder the playlist ...
@kingshukcs Жыл бұрын
This is very well detailed and easy to understand. Thank You!
@emremlck29052 ай бұрын
I haven't seen that kind of marvelous video thank you for everything
@tanujbhatt2184 Жыл бұрын
11:58 , shouldn't super() for B be called twice? Once by the this()->B()->super() and then by B(int)->super() (As every constructor have super() by default)? Shouldn't the output be: in A (from super of B(int) ) in A (from this() of B(int) to B() to super of B() ) in B ( (from this() of B(int) to B() ) in B int
@bothighlights41795 ай бұрын
When you type this() in a constructor the compiler doesn't insert super() by default! i hope it helped
@nccharles5 ай бұрын
Wow! Just liked super(n) I have never understood this before! Thank you🙏
@arijeetdey4183Ай бұрын
What an explanation Naveen 👏
@RohithKumar-219626 күн бұрын
System.out.println(x:"hi"); What does x means could you explain me 😅 How does work in it
@mf3396 Жыл бұрын
Very enlightening video, congrats!
@devanshupmanyu464010 ай бұрын
With your video you clearly teach inheritance concepts and the way u add some fuuny joke reference like john cena you can't see me so good to remind the things.
@rakshiths48548 ай бұрын
That's a deep explanation bro, thank you
@aninditadas7348 Жыл бұрын
You are awesome :) , I am learning from your channel
@Batman_07-v2c6 ай бұрын
11:57 output=> int A int int A int B int B int becz=>public B(int a)=>it will also have super() am i right? anyone can clarify my doubt
@shantanukulkarni8883 Жыл бұрын
Thank you for introducing me to John Cena memes
@swastikasrivastava47086 ай бұрын
Hi sir, I have a doubt that when this() is used, why super() is not executed twice? As you have mentioned that all constructors by default will have super(); as the first line. It should be executed twice - 1st for parameterised constructor of B, the ln 2nd when this() calls the default constructor of B class. Also, thank you for making this playlist. It has helped me clear my java concepts in depth and not just definitions wise.
@bothighlights41795 ай бұрын
When you type this() in a constructor the compiler doesn't insert super() by default! i hope it helped
@swastikasrivastava47085 ай бұрын
@@bothighlights4179 thanks :)
@neonyt6739Ай бұрын
Greatest explanation sir.
@AkashChoudri-o7n6 ай бұрын
I have one query! Instead of using this() is we can use the constructor chainning for this scenario??
@HussainHumood-c4s10 ай бұрын
Wow, terrific explanation!
@GK_developer9 ай бұрын
very nice explanation Navin I really like your way of teaching and explanation... I have a small doubt, is it possible to execute only child constructor without parent constructer execution like I need a output of "in B"? if yes how?
@mmahm48179 ай бұрын
Same question
@opabhistudio Жыл бұрын
Where we create main method so it have class which we save as a class name, it's main class or not
@anoopjalla8404 Жыл бұрын
dang I wish these videos were out when I was learning java for the first time.
@gowssheik489 Жыл бұрын
Very nice explanation sir
@yashmishra43686 ай бұрын
Great explanation
@skadoosh9365 Жыл бұрын
hey!! sir your content is good but i persinally faced problem in the order of the videos. can you just reorder it again?
@sruthigudmella3322 Жыл бұрын
yeah me too
@beam36182 ай бұрын
Same issue bro
@hw_was_taken423 Жыл бұрын
the joke in the first sentence made me crack up, good work sir!
@sivakumar-mt2cz Жыл бұрын
Thank you for sharing..
@MoeMoe-qr7od Жыл бұрын
excellent tutorial Sir.
@ooogabooga51119 ай бұрын
Now this was a good video, I liked it
@MuditGupta07 Жыл бұрын
can we parameterize the "This method" so that it accesses first the default B constructor followed by the int B and then default A the output wile be like : in A in B int in B
@jvuniverse7884 Жыл бұрын
Sir can you please provide the notes of this course?
@adishct4371 Жыл бұрын
Thank you for the knowledge.
@nirmalsinghpatel22273 ай бұрын
Very Nyc sir.
@cherukukishore35686 ай бұрын
Very nice explanation. What if I don't want to call super class constructor?
@MrNAWIN9993 ай бұрын
Without calling the constructor, how can u access parent class methods
@adityakumar3805 ай бұрын
These concepts using the "this()" method are called "CONSTRUCTER CHAINING".
@keshavagrawal33968 ай бұрын
Sir I think there is a mistake in this . Super() doesn't behave as john cena in the constructor, it's there inside the class directly outside the constructor while extends any other class. @Telusko please confirm.
@Yashkumar-m054 ай бұрын
Superb
@AravStark Жыл бұрын
efficiently taught
@DevangPatel-b6u8 ай бұрын
hey so does the objects constructor also call super() ?
@HappyTest-rr3jq Жыл бұрын
great, but what if i only want to call the constructor of class B is there a way to disable that super method, obviously not removing the extends A
@sakthipriya8653 Жыл бұрын
Same doubt
@studychannel-xs5hu8 ай бұрын
thanks sir
@AashiSaxena-g8z8 ай бұрын
is class B not extending object class along with Class A?
@AyushKumar-bd7gq11 ай бұрын
Sir, I have a doubt, is super only work on constructor ??
@VamsiNalam-d3r Жыл бұрын
Tq Sir Very Nice
@isultan.official10 ай бұрын
Explanation ❤
@RaviKumar-zb8bl Жыл бұрын
thanks
@CHALLENGESTORY Жыл бұрын
John Cena ? 😂 You can't see it..damn this guy is so fun..!!! and the way he teaches with those expressions and thought processes of a student and then coming to the answer..is the best part of what he does.
@CHALLENGESTORY Жыл бұрын
guessing obvious wrong answers first like a student and then coming to the points and correct principles..
@madhumukkera3343 Жыл бұрын
sir ,the order of videos is misplaced
@AbhilashMunnangi5 ай бұрын
jhon cena caught me off guard LMAO i can't stop laughing
@HishamMohammed-gh7eh Жыл бұрын
Wow , amazing
@nosystemissaf3 Жыл бұрын
reorder the playlist
@heisenberg213 Жыл бұрын
What should we see in this playlist before this video
@abhijithtm1318 Жыл бұрын
@@heisenberg213 bro. this playlist is available as a 12hr long video. see the time stamps in that videos description
@jtotherock7244 Жыл бұрын
This () and Super() are being invoked in public B(int) to call all ? Doesn't work?
@gayathridhana1000 Жыл бұрын
Thanks alot
@emirwertyukes9587 Жыл бұрын
The John Cena metaphor... I'm studying for my final exam (tomorrow) and that John Cena metaphor just made me laugh in all these stress. Thanks Telusko!
@TuxTuxedo-oc9kg Жыл бұрын
It is indeed fun haha! great videos!
@toufik1328Ай бұрын
Concept 😎
@karthikgururajan11312 ай бұрын
Didnt expect someone saying John Cena during a inheritance lecture lmao
@ImperiaLGamer04 Жыл бұрын
you're damn good
@nithin4457 Жыл бұрын
How is the Class A getting called without creating an object of A ?
@tototaro-y5g6 ай бұрын
Because we extended or inherited a class in b , so b class will have all the constructor of a as well and as we know constructor is called when object of its class have been created , so creating object for b , calling it's constructor as well it's super class which is a's constructor as well
@kvelez Жыл бұрын
public class Main{ public static void main(String[] args) { B obj = new B();//Object through constructor obj.Announcement();//Method call } } class A{//parent class public A(){ //Constructor } public void Announcement(){ System.out.println("In A."); } } class B extends A{//inheritance public B(){ //Constructor } @Override //Changes method for B public void Announcement(){ super.Announcement();//Call the parents method System.out.println("In B.");//Overriden method } }
@jerryekwusigo3787 Жыл бұрын
Your boring jokes are the best. 😂😂😂 Talking about John Cena memes 😂
@nosystemissaf3 Жыл бұрын
i think inheritence is video number 48
@bharadwajk61915 ай бұрын
class Parent { // public Parent() {} public Parent(int x) { System.out.println("Parent constructor called with x = " + x); } } class Child extends Parent { public Child() { System.out.println("Child default constructor called"); } public Child(int y) { super(y + 1); // Calling the parent constructor with y + 1 System.out.println("Child parameterized constructor called with y = " + y); } } class Main { public static void main(String[] args) { Child child1 = new Child(); // Implicit call to Parent's default constructor } } sir as here the parent class is not having the default constructor does that class wouldnt create its default .As this was giving an error. Can you please help me with this.
@Sivaiy11 ай бұрын
❤❤❤❤
@its_SR072 жыл бұрын
helpful :D
@sageheal-gt9ib10 ай бұрын
are mughe chakkar aarhe hain
@ngonimugandani4504 Жыл бұрын
hahaha the John Cena meme, that was funny
@polytrave Жыл бұрын
i love you.
@sproopesh732 жыл бұрын
May be its first comment
@dhanushkumar19646 ай бұрын
john cena : u can't see me 🤣🤣
@Yashkumar-m054 ай бұрын
Y
@tharindumandusanka77082 жыл бұрын
2nd comment
@msdivakar007 Жыл бұрын
John Cena is there and can't see
@TheGloriousOne07 ай бұрын
Jhon Cena ❤😂
@probirroy68742 ай бұрын
Do you ever do that? public class Hello { public static void main (String a[]) { Swift s = new Swift("Fog Light"); String d = "monday"; String result = ""; result = switch(d) { case "monday" -> "Week started"; case "saturday","sunday" -> "Oh! its weekend."; default -> throw new IllegalArgumentException("Unexpected value: " + d); }; System.out.println(result); } } class Car{ public Car(){ System.out.println("Constractor execute!"); } public Car(int wheels){ System.out.println("Car have wheels:" + wheels); } } class Swift extends Car{ public Swift() { System.out.println("Swift is a car"); } public Swift(String accessories) { System.out.println("New accessories include: " + accessories); this(); } } Do you know what if I want to call this(); after System.out.println("New accessories include: " + accessories);?