//******************************************** public class Main { public static void main(String[] args) { // super = keyword refers to the superclass (parent) of an object // very similar to the "this" keyword Hero hero1 = new Hero("Batman",42,"$$$"); Hero hero2 = new Hero("Superman",43,"everything"); System.out.println(hero2.toString()); } } //******************************************** public class Person { String name; int age; Person(String name,int age){ this.name = name; this.age = age; } public String toString() { return this.name + " " + this.age + " "; } }//******************************************** public class Hero extends Person{ String power; Hero(String name,int age,String power){ super(name,age); this.power = power; } public String toString() { return super.toString()+this.power; } }//********************************************
@Kingdd1os
2 жыл бұрын
Bro, you helped me so much that i canot say in words how thankful iam , God bless you.
@JiosWrld
Жыл бұрын
@@Kingdd1os hm...
@baubaudinamo
3 жыл бұрын
this was Super() easy to understand
@ctluwua7695
3 жыл бұрын
:) Yeah!
@xxdjmocoxx6297
2 жыл бұрын
toEasy()
@professionalaveragekid
Ай бұрын
probably one of the most comprehensive java tutorials, without cutting corners :D
@reynaldojrcapilitan943
3 жыл бұрын
More power to you man. I watched a lot of tutorials but yours really exceeded everyone. The way you explain is so easy to understand!
@furiouspuzza7080
3 жыл бұрын
I'm surprised that this channel only has 2.53k subs, it's "super" underrated
@BroCodez
3 жыл бұрын
thanks Furious! Hopefully that will change someday
@furiouspuzza7080
3 жыл бұрын
@@BroCodez lol yea
@furiouspuzza7080
3 жыл бұрын
VD 😂
@shyam.upadhyay
2 жыл бұрын
@@BroCodez 227k now bro.
@MuksEmmaN
2 жыл бұрын
I year later 291k we'll done bro
@Emir-yo8ek
8 ай бұрын
I just love how you repeat previous topics by explaining the code in a certain order. Thx bro, greetings from Turkey
@husein_alfil
3 жыл бұрын
This is the best KZitem Channel for teaching how to Code on KZitem ! Keep going and you will surely reach the 1 Million soon ! Thank you for the great way in explaining !
@thang.d2382
2 жыл бұрын
Your video is short, but it's informative. That's all we need. Many thanks
@firepower01
2 жыл бұрын
Your videos are getting me through university dude. Thank you so much for making these tutorials.
@shubhsharma19
2 жыл бұрын
this actually deserves more likes unfortunately people dont do this often :(
@pavelkvasnicka6856
Жыл бұрын
This is the best Java tutorial for beginners, so you can learn Java and English in one hit. Please keep going! I vote for Java advance tutorial. Thanks a lot Bro
@shalajko
3 жыл бұрын
superb vid. very powerful presentation
@mullim9860
2 жыл бұрын
Really helpful content👍🏻
@bhavesh2395
2 жыл бұрын
The best channel to learn and get started with a new programming language . Thanks bro
@adish6861
Жыл бұрын
One of the best youtube channel helps me a lot in learning coding.
@MrBensella
3 жыл бұрын
elegant simple and awesome! thank you!
@Khadheeja
3 ай бұрын
Awesome Stuff
@amanthakur6913
3 жыл бұрын
really enjoying your tutorial
@lukashenrique4295
11 ай бұрын
great stuff!! I've gone through a year and a half in college, we never had Java, but after I switched to another college (years later), they're having Java there and it's been a pain because of the virtual environment. maybe my plugin in the IDE can't handle saving the file multiple times to adjust something because it always tells me it couldn't delete one of the temp files, and in the terminal it works the way it did before the alterations I've done so it's like I'm running the older version of that file. then I restart the computer to make the temp files forcibly get removed whenever I can't build the project and it works, all of the alterations are applied.
@danialsharifi3513
2 жыл бұрын
Thank you, finally I understand what is super keyword for!
@Garrison86
2 жыл бұрын
Thanks for the example, very clear.
@yevgenomelchenko732
Жыл бұрын
Cool lesson. Thanks.
@lamias7712
2 жыл бұрын
Well explained, Thanks a lot
@MusicMan121
Жыл бұрын
Best java course I've found, by far
@lanak.6886
Жыл бұрын
these 10 min thought me more than the 2 hour lecture in university lol thx bro
@Tarnovgrad
6 ай бұрын
You show very good examples and explain it very well!
@fuadfataliyev3714
3 жыл бұрын
Great Lecture
@daviddeguzman7218
Жыл бұрын
Great! 👍
@angelamwelwa784
Жыл бұрын
you are really a java server i have understood more than i ever imagined
@danny.3036
3 жыл бұрын
Thanks, Bro! ☕ You're awesome!
@user-dm2go7us4j
5 ай бұрын
thank you after 4 hour long lesson in school, you made it clearer in 3 videos of -10 min thank you
@rjp1996
2 жыл бұрын
brooooo, thank you so much for this tutorial. only after seeing this did I understand how to properly use the keywords - super and this.
@familyguyshorts2740
2 жыл бұрын
Amazing😀😀😀
@jeffdoo3806
11 күн бұрын
Awesome video. I'm new to programming and learning JAVA atm. Would surely enroll in one of your courses if you had them because all the subjects i struggle with in my textbook are always clear to me after one of your video's!
@tekengaged2230
Ай бұрын
Excellent Video!!!
@arailymmeshitbayeva9412
3 жыл бұрын
I have a question related to overriding of the toString method in Hero class, is it necessary?
@bluecross963
2 жыл бұрын
Best, as always :)
@derjenicheoffiziell
3 жыл бұрын
Hey Bro, I just shared your channel on r/learnprogramming, hopefully it'll help you in your heroic defiance of the almighty algorithm :)
@BroCodez
3 жыл бұрын
Taylo you are AWESOME. I appreciate the share. I hate to admit it, but I could use all the help I can get. thanks again.
@derjenicheoffiziell
3 жыл бұрын
@@BroCodez No problem man, you definitely deserve more exposure
@MrNb-xu7jl
Жыл бұрын
yeeeehhhh finnaly i understood what it meansssss. bro you are the bestttt
@orlandohunter2785
3 жыл бұрын
The prayers did worked, the algorithm brought me here. :)
@arailymmeshitbayeva9412
3 жыл бұрын
thx) it was super!
@shwaysregaldexter47
2 жыл бұрын
Getting lessons from gigachad. Bruv this is bussin
@DrinkableWater
3 жыл бұрын
Finally i know what super is doing :D thanks
@BroCodez
3 жыл бұрын
Yeah all it does is refer to an object's super class
@typn6472
Жыл бұрын
thanks for the video
@Foxekins
2 жыл бұрын
YOU ARE A LEGEND!!
@unalysuf
Жыл бұрын
it is very clear explanation
@prajwaldeepkhokhar7416
3 жыл бұрын
Hey bro a simple question, why extend a class to use its functionality when we can simply make its object and do the same?
@Jason-lu5wr
Жыл бұрын
When the class is an extension of the parent class, if an object is instantiated within the child class does that mean the variables/objects that were extended are separate from the variables/objects of the original parent class? (Sorry if that was worded poorly as I'm still new to this)
@johndavis29209
Жыл бұрын
Dude i love you so much.
@JackNonsence
4 ай бұрын
Bro is much better than my professor.
@kippenvogelchen9717
3 жыл бұрын
Well done! :-)
@AlirezaR5
8 ай бұрын
Awesome
@cornmasterliao7080
Жыл бұрын
Is the toString method in Hero considered an Overriding method? Since it's using the original method from its super class so I'm not sure.
@TheTariqibnziyad
3 жыл бұрын
Amazing
@vaibhavborane6763
Жыл бұрын
We got lots of tech channel of Indian Teachers, but your teaching method is on point Thanks for creating all this stuff Bro
@yigitalkan2916
7 ай бұрын
HEYY BROS This guy is great Greetings from Bern
@omersond4891
3 жыл бұрын
Frankys reaction after this video: "suuuuupeeer()";
@minhtetpaing1695
3 жыл бұрын
Thank you so much sir.
@huuloc8719
2 жыл бұрын
NIce.
@UltraSolarGod
2 жыл бұрын
I m the 1000th like of this video xD
@ilvicumani438
Жыл бұрын
Thanks Bro!
@userKanchanKidsZone
Жыл бұрын
Best❤
@augischadiegils.5109
3 жыл бұрын
Thanks !
@praveenbalajikalla-ng6mx
4 ай бұрын
woww
@heviaraz6559
Жыл бұрын
Thank you Bro you’re always be our super()hero💪😆
@rinadem5219
Жыл бұрын
amazing
@noisyguest5249
3 жыл бұрын
I never knew "super" keyword even existed
@BroCodez
3 жыл бұрын
It's a thing
@J0rD5t3R
Жыл бұрын
You're the best
@afaqulhassan5399
7 ай бұрын
Besttttt
@EyBossPusi
3 ай бұрын
Thank you for this
@denizorhan1470
14 күн бұрын
Thank you bro. Videos are amazingly well ordered an educative
@HAITIANGPT
4 ай бұрын
Thank you Bro!!!!!!!!!!!!!!!!!!!
@sabermmirza
11 ай бұрын
your geniuse
@astronomy7823
2 жыл бұрын
Thanks bro
@sophia9372
2 жыл бұрын
explained it better than my prof
@ghettoslick2000
8 ай бұрын
Thanks Bro
@gediminasredeckas1968
3 жыл бұрын
Hey Bro, what is more acceptable to use: System.out.println(hero2) or System.out.println(hero2.toString())? Since both prints the same output.
@Yumiesthetic
Жыл бұрын
just put hero2, i use intellij and it says that it's a redundant string call and it's useless, toString means to convert the memory value/data into a readable string, which was already done in the other classes
@ibrahimylmaz8378
2 жыл бұрын
thanks bro
@user-ci9om8vi9f
Жыл бұрын
great
@romanrubanovich9273
3 жыл бұрын
Thanks a lot
@DeepakKumar-dw1re
2 жыл бұрын
Super
@user-cd9lg4rt8t
Жыл бұрын
KING
@oscarcrowe5798
Жыл бұрын
thankyou sir
@titanmongoloid8164
Жыл бұрын
Does anybody know if you can call the base class constructor inside a subclass method as well? I have tried and it tells me the call must be the first call in a constructor. It's only working on the subclass constructor. Any help is appreciated!
@bengamin98
Жыл бұрын
Super basically equals Parent. Good to know!
@Ahmad-jc7by
Жыл бұрын
❤❤❤
@alexandre39494
11 ай бұрын
Hello Bro Code , in your video I see a lot of samples in "package explorer". From were do you get these samples? I would like to get these samples too. any help would be very nice.
@johan-oe9kz
2 жыл бұрын
👍
@nerrixj.l.6102
2 жыл бұрын
😍
@cdjosh3568
3 жыл бұрын
Pretty epic
@user-zq6yx7of5f
Жыл бұрын
Thank you very much
@avi-ish8669
5 ай бұрын
super
@aimoon4654
2 жыл бұрын
naisuu
@balaeinstein8710
3 жыл бұрын
super cool videos bro. thanks . when will the playlist be updated bro? . It is difficult to search the videos bro
@BroCodez
3 жыл бұрын
I'm currently updating the videos now, I have the new videos unlisted and will release them in a batch weekly
@balaeinstein8710
3 жыл бұрын
@@BroCodez thanks bro. hope this channel reaches good number of subscribers soon
Пікірлер: 198