No video

Java super keyword 🦸‍♂️

  Рет қаралды 93,855

Bro Code

Bro Code

Күн бұрын

Java super keyword tutorial explained
#Java #super #keyword

Пікірлер: 200
@BroCodez
@BroCodez 3 жыл бұрын
//******************************************** 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
@Kingdd1os 2 жыл бұрын
Bro, you helped me so much that i canot say in words how thankful iam , God bless you.
@JiosWrld
@JiosWrld Жыл бұрын
@@Kingdd1os hm...
@baubaudinamo
@baubaudinamo 3 жыл бұрын
this was Super() easy to understand
@ctluwua7695
@ctluwua7695 3 жыл бұрын
:) Yeah!
@xxdjmocoxx6297
@xxdjmocoxx6297 3 жыл бұрын
toEasy()
@professionalaveragekid
@professionalaveragekid 2 ай бұрын
probably one of the most comprehensive java tutorials, without cutting corners :D
@reynaldojrcapilitan943
@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!
@Emir-yo8ek
@Emir-yo8ek 9 ай бұрын
I just love how you repeat previous topics by explaining the code in a certain order. Thx bro, greetings from Turkey
@furiouspuzza7080
@furiouspuzza7080 3 жыл бұрын
I'm surprised that this channel only has 2.53k subs, it's "super" underrated
@BroCodez
@BroCodez 3 жыл бұрын
thanks Furious! Hopefully that will change someday
@furiouspuzza7080
@furiouspuzza7080 3 жыл бұрын
@@BroCodez lol yea
@furiouspuzza7080
@furiouspuzza7080 3 жыл бұрын
VD 😂
@shyam.upadhyay
@shyam.upadhyay 2 жыл бұрын
@@BroCodez 227k now bro.
@MuksEmmaN
@MuksEmmaN 2 жыл бұрын
I year later 291k we'll done bro
@pavelkvasnicka6856
@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
@husein_alfil
@husein_alfil 3 жыл бұрын
This is the best KZfaq Channel for teaching how to Code on KZfaq ! Keep going and you will surely reach the 1 Million soon ! Thank you for the great way in explaining !
@jeffdoo3806
@jeffdoo3806 Ай бұрын
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!
@thang.d2382
@thang.d2382 2 жыл бұрын
Your video is short, but it's informative. That's all we need. Many thanks
@firepower01
@firepower01 2 жыл бұрын
Your videos are getting me through university dude. Thank you so much for making these tutorials.
@adish6861
@adish6861 Жыл бұрын
One of the best youtube channel helps me a lot in learning coding.
@user-dm2go7us4j
@user-dm2go7us4j 6 ай бұрын
thank you after 4 hour long lesson in school, you made it clearer in 3 videos of -10 min thank you
@bhavesh2395
@bhavesh2395 2 жыл бұрын
The best channel to learn and get started with a new programming language . Thanks bro
@Tarnovgrad
@Tarnovgrad 7 ай бұрын
You show very good examples and explain it very well!
@JackNonsence
@JackNonsence 5 ай бұрын
Bro is much better than my professor.
@derjenicheoffiziell
@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
@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
@derjenicheoffiziell 3 жыл бұрын
@@BroCodez No problem man, you definitely deserve more exposure
@Khadheeja
@Khadheeja 4 ай бұрын
Awesome Stuff
@MusicMan121
@MusicMan121 2 жыл бұрын
Best java course I've found, by far
@denizorhan1470
@denizorhan1470 Ай бұрын
Thank you bro. Videos are amazingly well ordered an educative
@lanak.6886
@lanak.6886 Жыл бұрын
these 10 min thought me more than the 2 hour lecture in university lol thx bro
@DrinkableWater
@DrinkableWater 3 жыл бұрын
Finally i know what super is doing :D thanks
@BroCodez
@BroCodez 3 жыл бұрын
Yeah all it does is refer to an object's super class
@shubhsharma19
@shubhsharma19 2 жыл бұрын
this actually deserves more likes unfortunately people dont do this often :(
@tekengaged2230
@tekengaged2230 2 ай бұрын
Excellent Video!!!
@lukashenrique4295
@lukashenrique4295 Жыл бұрын
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
@danialsharifi3513 2 жыл бұрын
Thank you, finally I understand what is super keyword for!
@angelamwelwa784
@angelamwelwa784 2 жыл бұрын
you are really a java server i have understood more than i ever imagined
@yigitalkan2916
@yigitalkan2916 8 ай бұрын
HEYY BROS This guy is great Greetings from Bern
@shalajko
@shalajko 3 жыл бұрын
superb vid. very powerful presentation
@vaibhavborane6763
@vaibhavborane6763 Жыл бұрын
We got lots of tech channel of Indian Teachers, but your teaching method is on point Thanks for creating all this stuff Bro
@EyBossPusi
@EyBossPusi 4 ай бұрын
Thank you for this
@MrBensella
@MrBensella 3 жыл бұрын
elegant simple and awesome! thank you!
@gedasred1
@gedasred1 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
@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
@balaeinstein8710
@balaeinstein8710 3 жыл бұрын
super cool videos bro. thanks . when will the playlist be updated bro? . It is difficult to search the videos bro
@BroCodez
@BroCodez 3 жыл бұрын
I'm currently updating the videos now, I have the new videos unlisted and will release them in a batch weekly
@balaeinstein8710
@balaeinstein8710 3 жыл бұрын
@@BroCodez thanks bro. hope this channel reaches good number of subscribers soon
@rjp1996
@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.
@MrNb-xu7jl
@MrNb-xu7jl Жыл бұрын
yeeeehhhh finnaly i understood what it meansssss. bro you are the bestttt
@Garrison86
@Garrison86 2 жыл бұрын
Thanks for the example, very clear.
@praveenbalajikalla-ng6mx
@praveenbalajikalla-ng6mx 5 ай бұрын
woww
@unalysuf
@unalysuf Жыл бұрын
it is very clear explanation
@lamias7712
@lamias7712 2 жыл бұрын
Well explained, Thanks a lot
@noisyguest5249
@noisyguest5249 3 жыл бұрын
I never knew "super" keyword even existed
@BroCodez
@BroCodez 3 жыл бұрын
It's a thing
@AlirezaR5
@AlirezaR5 9 ай бұрын
Awesome
@user-zq6yx7of5f
@user-zq6yx7of5f Жыл бұрын
Thank you very much
@kemann3815
@kemann3815 2 жыл бұрын
Super duper
@bengamin98
@bengamin98 Жыл бұрын
Super basically equals Parent. Good to know!
@orlandohunter2785
@orlandohunter2785 3 жыл бұрын
The prayers did worked, the algorithm brought me here. :)
@yevgenomelchenko732
@yevgenomelchenko732 Жыл бұрын
Cool lesson. Thanks.
@HAITIANGPT
@HAITIANGPT 5 ай бұрын
Thank you Bro!!!!!!!!!!!!!!!!!!!
@afaqulhassan5399
@afaqulhassan5399 8 ай бұрын
Besttttt
@daviddeguzman7218
@daviddeguzman7218 Жыл бұрын
Great! 👍
@heviaraz6559
@heviaraz6559 Жыл бұрын
Thank you Bro you’re always be our super()hero💪😆
@user-ci9om8vi9f
@user-ci9om8vi9f Жыл бұрын
great
@mullim9860
@mullim9860 2 жыл бұрын
Really helpful content👍🏻
@huuloc8719
@huuloc8719 2 жыл бұрын
NIce.
@userKanchanKidsZone
@userKanchanKidsZone Жыл бұрын
Best❤
@rinadem5219
@rinadem5219 Жыл бұрын
amazing
@UltraSolarGod
@UltraSolarGod 2 жыл бұрын
I m the 1000th like of this video xD
@Jason-lu5wr
@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)
@prajwaldeepkhokhar7416
@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?
@J0rD5t3R
@J0rD5t3R Жыл бұрын
You're the best
@Sofia-rg3er
@Sofia-rg3er 5 ай бұрын
Thank you bro
@JashanSingh-ve7yx
@JashanSingh-ve7yx 3 жыл бұрын
Good
@shwaysregaldexter47
@shwaysregaldexter47 2 жыл бұрын
Getting lessons from gigachad. Bruv this is bussin
@amanthakur6913
@amanthakur6913 3 жыл бұрын
really enjoying your tutorial
@DeepakKumar-dw1re
@DeepakKumar-dw1re 2 жыл бұрын
Super
@johndavis29209
@johndavis29209 Жыл бұрын
Dude i love you so much.
@oscarcrowe5798
@oscarcrowe5798 Жыл бұрын
thankyou sir
@alexandre39494
@alexandre39494 Жыл бұрын
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.
@whyjamesisacommonname
@whyjamesisacommonname Жыл бұрын
If we use this: Hero hero1 = new Hero(Person,44,"44"); 'Person' I'm referring to the parent class. What would be the constructor for Hero?
@jojovstojo
@jojovstojo Жыл бұрын
Superman is your favorite hero right?? Yeah I find BAtman lame too ! Thats why you printed 'hero2' attributes when you also had 'hero1' ! 😉😄 NIce turorial bdw..... So far loving the simplicity of videos.
@avi-ish8669
@avi-ish8669 6 ай бұрын
super
@typn6472
@typn6472 Жыл бұрын
thanks for the video
@sabermmirza
@sabermmirza Жыл бұрын
your geniuse
@bluecross963
@bluecross963 2 жыл бұрын
Best, as always :)
@noisyguest5249
@noisyguest5249 3 жыл бұрын
U should try unity game engine
@BroCodez
@BroCodez 3 жыл бұрын
I would like to, but I have my hands full right now lol
@astronomy7823
@astronomy7823 2 жыл бұрын
Thanks bro
@chichung2243
@chichung2243 9 ай бұрын
Thanks
@user-cd9lg4rt8t
@user-cd9lg4rt8t Жыл бұрын
KING
@ibrahimylmaz8378
@ibrahimylmaz8378 2 жыл бұрын
thanks bro
@leonard0104
@leonard0104 Жыл бұрын
What would happen if I would only run: sout(hero2); AT 07:00 ? Why would it not just print out the 3 Values too? Why is the super-statement needed?
@leonard0104
@leonard0104 Жыл бұрын
Is it because we cannot make objects on superclasses in java, so the hero-class has to extend the "toString" methode of the person-class? would that be called overriding?
@leruleru8723
@leruleru8723 2 жыл бұрын
1:48 I saw that coming
@cornmasterliao7080
@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.
@minhtetpaing1695
@minhtetpaing1695 3 жыл бұрын
Thank you so much sir.
@sophia9372
@sophia9372 2 жыл бұрын
explained it better than my prof
@omersond4891
@omersond4891 3 жыл бұрын
Frankys reaction after this video: "suuuuupeeer()";
@PoorwayTraning
@PoorwayTraning Жыл бұрын
thanks
@fuadfataliyev3714
@fuadfataliyev3714 3 жыл бұрын
Great Lecture
@familyguyshorts2740
@familyguyshorts2740 2 жыл бұрын
Amazing😀😀😀
@alialhussain4139
@alialhussain4139 2 ай бұрын
Thanks, Bro 06/13/2024 😊
@juanperdomo4293
@juanperdomo4293 Жыл бұрын
Thanks!!!
@danny.3036
@danny.3036 3 жыл бұрын
Thanks, Bro! ☕ You're awesome!
@arailymmeshitbayeva9412
@arailymmeshitbayeva9412 3 жыл бұрын
I have a question related to overriding of the toString method in Hero class, is it necessary?
@GOODBOY-vt1cf
@GOODBOY-vt1cf 3 жыл бұрын
4:28
@Foxekins
@Foxekins 2 жыл бұрын
YOU ARE A LEGEND!!
@aimoon4654
@aimoon4654 2 жыл бұрын
naisuu
@aiueo8962
@aiueo8962 Жыл бұрын
gg bro, after i watched this video, i can write some code without your tutorial...
@ilvicumani438
@ilvicumani438 Жыл бұрын
Thanks Bro!
@romario92730
@romario92730 3 жыл бұрын
Thanks a lot
@TheTariqibnziyad
@TheTariqibnziyad 3 жыл бұрын
Amazing
@Ahmad-jc7by
@Ahmad-jc7by Жыл бұрын
❤❤❤
Java abstraction 👻
5:30
Bro Code
Рет қаралды 132 М.
Super Keyword in Java Full Tutorial - How to Use "super"
11:33
Coding with John
Рет қаралды 202 М.
WILL IT BURST?
00:31
Natan por Aí
Рет қаралды 29 МЛН
Секрет фокусника! #shorts
00:15
Роман Magic
Рет қаралды 43 МЛН
Java HashMap 🗺️
13:05
Bro Code
Рет қаралды 81 М.
Java Super Keyword Tutorial #87
15:00
Alex Lee
Рет қаралды 228 М.
Java constructors 👷
10:37
Bro Code
Рет қаралды 175 М.
Java interface 🦅
7:51
Bro Code
Рет қаралды 187 М.
Java encapsulation 💊
8:27
Bro Code
Рет қаралды 109 М.
Java Polymorphism Fully Explained In 7 Minutes
7:16
Coding with John
Рет қаралды 307 М.
Java lambda λ
18:00
Bro Code
Рет қаралды 92 М.
Java multithreading 🧶
15:18
Bro Code
Рет қаралды 126 М.
Java enum 🪐
10:50
Bro Code
Рет қаралды 64 М.
Java Custom Exceptions Tutorial - It's Way Easier Than You Think
14:29
Coding with John
Рет қаралды 154 М.
WILL IT BURST?
00:31
Natan por Aí
Рет қаралды 29 МЛН