Тёмный

Java super keyword 🦸‍♂️ 

Bro Code
Подписаться 2,1 млн
Просмотров 95 тыс.
50% 1

Java super keyword tutorial explained
#Java #super #keyword

Опубликовано:

 

12 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 202   
@BroCodez
@BroCodez 4 года назад
//******************************************** 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()
@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!
@professionalaveragekid
@professionalaveragekid 2 месяца назад
probably one of the most comprehensive java tutorials, without cutting corners :D
@furiouspuzza7080
@furiouspuzza7080 4 года назад
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
@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
@husein_alfil
@husein_alfil 3 года назад
This is the best RU-vid Channel for teaching how to Code on RU-vid ! Keep going and you will surely reach the 1 Million soon ! Thank you for the great way in explaining !
@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
@jeffdoo3806
@jeffdoo3806 2 месяца назад
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!
@firepower01
@firepower01 2 года назад
Your videos are getting me through university dude. Thank you so much for making these tutorials.
@thang.d2382
@thang.d2382 2 года назад
Your video is short, but it's informative. That's all we need. Many thanks
@derjenicheoffiziell
@derjenicheoffiziell 4 года назад
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 4 года назад
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 4 года назад
@@BroCodez No problem man, you definitely deserve more exposure
@adish6861
@adish6861 Год назад
One of the best youtube channel helps me a lot in learning coding.
@dianamilenaarchilacordoba4632
@dianamilenaarchilacordoba4632 4 дня назад
great video!!! I'm infinitely grateful for your dedication and big heart to share this knowledge with the world. Thank you soo much
@Khadheeja
@Khadheeja 4 месяца назад
Awesome Stuff
@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
@bhavesh2395
@bhavesh2395 2 года назад
The best channel to learn and get started with a new programming language . Thanks bro
@user-dm2go7us4j
@user-dm2go7us4j 7 месяцев назад
thank you after 4 hour long lesson in school, you made it clearer in 3 videos of -10 min thank you
@Tarnovgrad
@Tarnovgrad 8 месяцев назад
You show very good examples and explain it very well!
@denizorhan1470
@denizorhan1470 2 месяца назад
Thank you bro. Videos are amazingly well ordered an educative
@yigitalkan2916
@yigitalkan2916 8 месяцев назад
HEYY BROS This guy is great Greetings from Bern
@shubhsharma19
@shubhsharma19 2 года назад
this actually deserves more likes unfortunately people dont do this often :(
@tekengaged2230
@tekengaged2230 3 месяца назад
Excellent Video!!!
@DrinkableWater
@DrinkableWater 4 года назад
Finally i know what super is doing :D thanks
@BroCodez
@BroCodez 4 года назад
Yeah all it does is refer to an object's super class
@MusicMan121
@MusicMan121 2 года назад
Best java course I've found, by far
@lanak.6886
@lanak.6886 Год назад
these 10 min thought me more than the 2 hour lecture in university lol thx bro
@MrNb-xu7jl
@MrNb-xu7jl Год назад
yeeeehhhh finnaly i understood what it meansssss. bro you are the bestttt
@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.
@balaeinstein8710
@balaeinstein8710 4 года назад
super cool videos bro. thanks . when will the playlist be updated bro? . It is difficult to search the videos bro
@BroCodez
@BroCodez 4 года назад
I'm currently updating the videos now, I have the new videos unlisted and will release them in a batch weekly
@balaeinstein8710
@balaeinstein8710 4 года назад
@@BroCodez thanks bro. hope this channel reaches good number of subscribers soon
@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.
@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.
@angelamwelwa784
@angelamwelwa784 2 года назад
you are really a java server i have understood more than i ever imagined
@danialsharifi3513
@danialsharifi3513 2 года назад
Thank you, finally I understand what is super keyword for!
@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?
@MrBensella
@MrBensella 3 года назад
elegant simple and awesome! thank you!
@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
@bengamin98
@bengamin98 Год назад
Super basically equals Parent. Good to know!
@unalysuf
@unalysuf Год назад
it is very clear explanation
@shalajko
@shalajko 3 года назад
superb vid. very powerful presentation
@daviddeguzman7218
@daviddeguzman7218 Год назад
Great! 👍
@kemann3815
@kemann3815 2 года назад
Super duper
@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.
@EyBossPusi
@EyBossPusi 5 месяцев назад
Thank you for this
@yevgenomelchenko732
@yevgenomelchenko732 Год назад
Cool lesson. Thanks.
@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)
@praveenbalajikalla-ng6mx
@praveenbalajikalla-ng6mx 5 месяцев назад
woww
@orlandohunter2785
@orlandohunter2785 3 года назад
The prayers did worked, the algorithm brought me here. :)
@userkanchank
@userkanchank Год назад
Best❤
@JackNonsence
@JackNonsence 6 месяцев назад
Bro is much better than my professor.
@Garrison86
@Garrison86 2 года назад
Thanks for the example, very clear.
@mullim9860
@mullim9860 2 года назад
Really helpful content👍🏻
@bluecross963
@bluecross963 2 года назад
Best, as always :)
@heviaraz6559
@heviaraz6559 Год назад
Thank you Bro you’re always be our super()hero💪😆
@lamias7712
@lamias7712 2 года назад
Well explained, Thanks a lot
@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?
@afaqulhassan5399
@afaqulhassan5399 9 месяцев назад
Besttttt
@johndavis29209
@johndavis29209 Год назад
Dude i love you so much.
@UltraSolarGod
@UltraSolarGod 2 года назад
I m the 1000th like of this video xD
@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.
@noisyguest5249
@noisyguest5249 4 года назад
U should try unity game engine
@BroCodez
@BroCodez 4 года назад
I would like to, but I have my hands full right now lol
@huuloc8719
@huuloc8719 2 года назад
NIce.
@user-ci9om8vi9f
@user-ci9om8vi9f Год назад
great
@rinadem5219
@rinadem5219 Год назад
amazing
@J0rD5t3R
@J0rD5t3R Год назад
You're the best
@typn6472
@typn6472 Год назад
thanks for the video
@amanthakur6913
@amanthakur6913 3 года назад
really enjoying your tutorial
@HAITIANGPT
@HAITIANGPT 6 месяцев назад
Thank you Bro!!!!!!!!!!!!!!!!!!!
@user-zq6yx7of5f
@user-zq6yx7of5f Год назад
Thank you very much
@shwaysregaldexter47
@shwaysregaldexter47 2 года назад
Getting lessons from gigachad. Bruv this is bussin
@DeepakKumar-dw1re
@DeepakKumar-dw1re 2 года назад
Super
@noisyguest5249
@noisyguest5249 4 года назад
I never knew "super" keyword even existed
@BroCodez
@BroCodez 4 года назад
It's a thing
@familyguyshorts2740
@familyguyshorts2740 2 года назад
Amazing😀😀😀
@sabermmirza
@sabermmirza Год назад
your geniuse
@oscarcrowe5798
@oscarcrowe5798 Год назад
thankyou sir
@arailymmeshitbayeva9412
@arailymmeshitbayeva9412 3 года назад
I have a question related to overriding of the toString method in Hero class, is it necessary?
@leonard0104
@leonard0104 2 года назад
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 2 года назад
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?
@user-cd9lg4rt8t
@user-cd9lg4rt8t Год назад
KING
@ghettoslick2000
@ghettoslick2000 10 месяцев назад
Thanks Bro
@astronomy7823
@astronomy7823 2 года назад
Thanks bro
@leruleru8723
@leruleru8723 2 года назад
1:48 I saw that coming
@fuadfataliyev3714
@fuadfataliyev3714 3 года назад
Great Lecture
@avi-ish8669
@avi-ish8669 6 месяцев назад
super
@Sofia-rg3er
@Sofia-rg3er 5 месяцев назад
Thank you bro
@johan-oe9kz
@johan-oe9kz 2 года назад
👍
@danny.3036
@danny.3036 3 года назад
Thanks, Bro! ☕ You're awesome!
@GOODBOY-vt1cf
@GOODBOY-vt1cf 3 года назад
4:28
@Foxekins
@Foxekins 2 года назад
YOU ARE A LEGEND!!
@AlirezaR5
@AlirezaR5 9 месяцев назад
Awesome
@omersond4891
@omersond4891 3 года назад
Frankys reaction after this video: "suuuuupeeer()";
@sophia9372
@sophia9372 2 года назад
explained it better than my prof
@nerrixj.l.6102
@nerrixj.l.6102 2 года назад
😍
@Ahmad-jc7by
@Ahmad-jc7by Год назад
❤❤❤
@ilvicumani438
@ilvicumani438 Год назад
Thanks Bro!
@aiueo8962
@aiueo8962 Год назад
gg bro, after i watched this video, i can write some code without your tutorial...
@alexandre39494
@alexandre39494 Год назад
Hello Bro Code, in your video I can see a lot of samples in "Package Explorer" ,from were did you get these samples? I would like to get these samples too. can you give me these samples or give me the internet link to these samples? any help would be very appreciated
@lmao9619
@lmao9619 4 месяца назад
throwing a comment down below youu are the best. I wish you all the fortune and prosperity
@juanperdomo4293
@juanperdomo4293 Год назад
Thanks!!!
@xdlovas
@xdlovas 5 месяцев назад
how cool is that. Sorry i'm comming from c++ :D
@MrLoser-ks2xn
@MrLoser-ks2xn 2 года назад
Thanks
@barkache93
@barkache93 2 года назад
Hello bro I'm the 444.444 subscriber for your super channel, hope you say hi to your new bro🤣
@BroCodez
@BroCodez 2 года назад
hi
@barkache93
@barkache93 2 года назад
@@BroCodez 🤣🙈💖
Далее
Java abstraction 👻
5:30
Просмотров 133 тыс.
Java HashMap 🗺️
13:05
Просмотров 82 тыс.
Faites comme moi
00:14
Просмотров 1,3 млн
ДЖЕФ  ЕЩЕ ПОМОГАЕТ!
09:37
Просмотров 271 тыс.
Java static keyword ⚡
8:18
Просмотров 113 тыс.
Python Decorators in 15 Minutes
15:14
Просмотров 441 тыс.
My 10 “Clean” Code Principles (Start These Now)
15:12
Learn JSON in 10 Minutes
12:00
Просмотров 3,2 млн
Java constructors 👷
10:37
Просмотров 178 тыс.
Java toString method 🎉
6:39
Просмотров 93 тыс.
Java generics ❓
22:04
Просмотров 107 тыс.
Java encapsulation 💊
8:27
Просмотров 111 тыс.