Java method overriding 🙅‍♂️

  Рет қаралды 117,345

Bro Code

Bro Code

Күн бұрын

Пікірлер: 201
@BroCodez
@BroCodez 4 жыл бұрын
//********************************************* public class Main { public static void main(String[] args) { // method overriding = Declaring a method in sub class, // which is already present in parent class. // done so that a child class can give its own implementation Animal animal = new Animal(); Dog dog = new Dog(); dog.speak(); } } //********************************************* public class Animal { void speak() { System.out.println("The animal speaks"); } }//********************************************* public class Dog extends Animal{ @Override void speak() { System.out.println("The dog goes *bark*"); } } //*********************************************
@ManishKumar-xw3gs
@ManishKumar-xw3gs Жыл бұрын
I have an important question: why do we override methods in java if we can create a new method in sub class with a different name??
@aligmayu5322
@aligmayu5322 4 жыл бұрын
holy sh... i thought that @override is a keyword that really does something but its not even necessary haha tnx 4 the explanation bro good job
@BroCodez
@BroCodez 4 жыл бұрын
thanks for watching gleford. Yeah it's considered good practice to add @Override, but I always forget 😂
@carsanovadidrifto800
@carsanovadidrifto800 2 жыл бұрын
Hey fam, I hope that you and your loved ones are well. I would like to ask you the most important question ever asked: Who is Jesus? Not who is He to you. Rather, who is He really? Jesus is the Son of God, who came to the world as a man. He lived a perfect and sinless life . Even though He was perfect and sinless, on the cross of Calvary God wrathfully punished Him for the sins of the world. 3 days later He rose from death. Now He is seated at the right hand of God, ruling as King over Heaven and Earth. On the judgment day He will judge you, me and every human being that has ever lived. Those who believed in Him will enter eternal joy with Him, but those who did not believe in Jesus will be sent to eternal condemnation. So turn from your sins and believe in the Jesus. Believe and hope that you can be forgiven for all your sins because of His death and resurrection. He took your place in Hell, so that if you submit to Him as your Lord and God, you can be forgiven and take His place in heaven- you will be made sinnless and perfect before the Holy Father. He'll also give you a new heart and mind that can love and obey Him. Jesus lives so that you can have true life and freedom, and most importantly so that you can have an eternally peaceful relationship with God. You are dead, and Jesus is your Hope of love. Acts 15:11 ”On the contrary, we believe it is through the grace of the Lord Jesus that we are saved, just as they are." Ephesians 1:7 ”In Him, we have redemption through His blood, the forgiveness of our trespasses, according to the riches of His grace" Ephesians 2:8 ”For it is by grace you have been saved through faith, and this not from yourselves; it is the gift of God,” John 11:25-26: "Jesus said to her, 'I am the resurrection and the life. The one who believes in me will live, even though they die; and whoever lives by believing in me will never die. Do you believe this?' 1 Corinthians 6:14: "And God raised the Lord and will also raise us up by his power." Romans 6:9: "We know that Christ, being raised from the dead, will never die again; death no longer has dominion over him."
@carsanovadidrifto800
@carsanovadidrifto800 2 жыл бұрын
@@BroCodez Hey fam, I hope that you and your loved ones are well. I would like to ask you the most important question ever asked: Who is Jesus? Not who is He to you. Rather, who is He really? Jesus is the Son of God, who came to the world as a man. He lived a perfect and sinless life . Even though He was perfect and sinless, on the cross of Calvary God wrathfully punished Him for the sins of the world. 3 days later He rose from death. Now He is seated at the right hand of God, ruling as King over Heaven and Earth. On the judgment day He will judge you, me and every human being that has ever lived. Those who believed in Him will enter eternal joy with Him, but those who did not believe in Jesus will be sent to eternal condemnation. So turn from your sins and believe in the Jesus. Believe and hope that you can be forgiven for all your sins because of His death and resurrection. He took your place in Hell, so that if you submit to Him as your Lord and God, you can be forgiven and take His place in heaven- you will be made sinnless and perfect before the Holy Father. He'll also give you a new heart and mind that can love and obey Him. Jesus lives so that you can have true life and freedom, and most importantly so that you can have an eternally peaceful relationship with God. You are dead, and Jesus is your Hope of love. Acts 15:11 ”On the contrary, we believe it is through the grace of the Lord Jesus that we are saved, just as they are." Ephesians 1:7 ”In Him, we have redemption through His blood, the forgiveness of our trespasses, according to the riches of His grace" Ephesians 2:8 ”For it is by grace you have been saved through faith, and this not from yourselves; it is the gift of God,” John 11:25-26: "Jesus said to her, 'I am the resurrection and the life. The one who believes in me will live, even though they die; and whoever lives by believing in me will never die. Do you believe this?' 1 Corinthians 6:14: "And God raised the Lord and will also raise us up by his power." Romans 6:9: "We know that Christ, being raised from the dead, will never die again; death no longer has dominion over him."
@EdgeLordOmen
@EdgeLordOmen 10 ай бұрын
you programmer now bro
@ttttkk2
@ttttkk2 29 күн бұрын
@@BroCodez but in android java programming, it does show an error and force me to add @override keyword
@archerx91x60
@archerx91x60 4 жыл бұрын
You are a better instructor than my professor at school.
@BroCodez
@BroCodez 4 жыл бұрын
Sweeeeet. Thanks for watching Archer
@archerx91x60
@archerx91x60 4 жыл бұрын
@@BroCodez I've watched most of your Java videos I still have a few to go. The 4 hours of gui took me like 8 hours to get through but was very beneficial. Keep doing what your doing bro you have no idea how much you are helping some people achieve their goals.
@tsuai4395
@tsuai4395 11 ай бұрын
Same here, this 4 minutes video is more useful than the 1 hr lecture and 3hr tutorial at school
@chakreshsingh
@chakreshsingh 3 жыл бұрын
I have never coded in Java and I always wondered what this annotation does .. thanks for clarifying so concisely
@Katie-zk4xs
@Katie-zk4xs 2 жыл бұрын
Your videos are getting me through college better than my textbook! Thank you!
@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
@QueenAyula
@QueenAyula 4 жыл бұрын
Really great explaination, I get overriding a whole lot better now. Thank you.
@BroCodez
@BroCodez 4 жыл бұрын
thank you for watching Miss H!
@theintrovert894
@theintrovert894 2 жыл бұрын
@@BroCodez can you plzz tell me how to clear screen in java in intelijj
@carsanovadidrifto800
@carsanovadidrifto800 2 жыл бұрын
Hey fam, I hope that you and your loved ones are well. I would like to ask you the most important question ever asked: Who is Jesus? Not who is He to you. Rather, who is He really? Jesus is the Son of God, who came to the world as a man. He lived a perfect and sinless life . Even though He was perfect and sinless, on the cross of Calvary God wrathfully punished Him for the sins of the world. 3 days later He rose from death. Now He is seated at the right hand of God, ruling as King over Heaven and Earth. On the judgment day He will judge you, me and every human being that has ever lived. Those who believed in Him will enter eternal joy with Him, but those who did not believe in Jesus will be sent to eternal condemnation. So turn from your sins and believe in the Jesus. Believe and hope that you can be forgiven for all your sins because of His death and resurrection. He took your place in Hell, so that if you submit to Him as your Lord and God, you can be forgiven and take His place in heaven- you will be made sinnless and perfect before the Holy Father. He'll also give you a new heart and mind that can love and obey Him. Jesus lives so that you can have true life and freedom, and most importantly so that you can have an eternally peaceful relationship with God. You are dead, and Jesus is your Hope of love. Acts 15:11 ”On the contrary, we believe it is through the grace of the Lord Jesus that we are saved, just as they are." Ephesians 1:7 ”In Him, we have redemption through His blood, the forgiveness of our trespasses, according to the riches of His grace" Ephesians 2:8 ”For it is by grace you have been saved through faith, and this not from yourselves; it is the gift of God,” John 11:25-26: "Jesus said to her, 'I am the resurrection and the life. The one who believes in me will live, even though they die; and whoever lives by believing in me will never die. Do you believe this?' 1 Corinthians 6:14: "And God raised the Lord and will also raise us up by his power." Romans 6:9: "We know that Christ, being raised from the dead, will never die again; death no longer has dominion over him."
@nikhilsastry6631
@nikhilsastry6631 2 жыл бұрын
@@carsanovadidrifto800 🍌🍌🍌
@professionalaveragekid
@professionalaveragekid 7 ай бұрын
probably one of the most comprehensive java tutorials, without cutting corners :D
@Joseph-gh5ib
@Joseph-gh5ib 2 жыл бұрын
I love the videos man. They are straight to the point with no excess bs in-between 🧡
@timothymcbearington9692
@timothymcbearington9692 Жыл бұрын
Thanks man, Java has been kickin gmy but for a while but your videos are a big help!
@eugenekrabs6400
@eugenekrabs6400 2 жыл бұрын
Gotta love when the textbook takes 10x longer to say the same thing in a less intuitive way. Thx bro.
@steatze
@steatze 3 жыл бұрын
One of the best KZbin Chanel
@NextGenTechnologist
@NextGenTechnologist 2 күн бұрын
Thanks for helping me understand my Java homework!
@PektraMom
@PektraMom Жыл бұрын
Wow! I failed a project last week and my teacher told me to re-do my project to pass it before going to the next module and I'm not gonna lie... I failed it hard at 30% and couldn't grasp anything about it. You made it so clear with this video that now my codes are all working like they should. Now, I should pass this project. I always come back to your videos because I just don't understand my teacher and you explain so well. Thank you!!!
@furydjin6769
@furydjin6769 7 ай бұрын
Brooo you are goated at explaining JAVA . You make this simpler to understand
@sebitboth4672
@sebitboth4672 7 ай бұрын
Thank you for making this concept easier and more understandable for me
@allenxu5970
@allenxu5970 2 жыл бұрын
hey bro, this is very clear, love your content! keep going!
@davidasiamah2898
@davidasiamah2898 Жыл бұрын
Great explanation and example
@bogdan14427
@bogdan14427 2 жыл бұрын
Good explanation... easy to understand
@georgmeinecke5370
@georgmeinecke5370 3 ай бұрын
very good explanation. 👍
@sandydsi1
@sandydsi1 2 жыл бұрын
Explained Effortlessly
@zanzun1146
@zanzun1146 Жыл бұрын
Great explanation Thank u
@miteshbarnwal8239
@miteshbarnwal8239 3 жыл бұрын
The best explanation for method overriding.
@safakakin
@safakakin Жыл бұрын
Hi Bro Code, thank you very much for taking the time to provide useful information.
@imsabbar
@imsabbar 4 жыл бұрын
Thanks a lot ❤️, well Explained bro
@jacobrobin9148
@jacobrobin9148 11 ай бұрын
10/10 video
@HpLapTop-f1x
@HpLapTop-f1x Жыл бұрын
Awe Bro ! Your videos EZ for undestanding and fast !
@hawremuhammed1310
@hawremuhammed1310 Жыл бұрын
Great Explanation.
@mulidubicus1473
@mulidubicus1473 2 жыл бұрын
Bro i love u, this was short and simple, u explained everything so well wow thank u so much
@soronity
@soronity 2 жыл бұрын
Best explanation I found on this topic!
@yvnnhong
@yvnnhong Жыл бұрын
best video i've found on this topic!!
@bozkurtburhan6
@bozkurtburhan6 3 жыл бұрын
I was suffering for understanding this overriding, but with your help, it seems coming to the end.
@eren-qu9wm
@eren-qu9wm Жыл бұрын
Thanks 👍😊 bro you are a living legend
@MY-bn4px
@MY-bn4px 4 жыл бұрын
so good
@Tarnovgrad
@Tarnovgrad Жыл бұрын
Very good video!Thank you!
@onyxtechnologyx
@onyxtechnologyx Жыл бұрын
God Bless u finally i understood @override usage
@michellekelly1220
@michellekelly1220 Жыл бұрын
Brilliant, so clearly and well explained - Thank you :)
@munirahalfawzan
@munirahalfawzan 9 ай бұрын
you r bessssttttt
@ShathaAl-Otaibi
@ShathaAl-Otaibi 2 ай бұрын
شرحه يجننن بكرا عندي فاينل oop وان شاء الله اجيب الفل مارك
@sumeiyajuma375
@sumeiyajuma375 2 жыл бұрын
wonderful explanation
@danny.3036
@danny.3036 3 жыл бұрын
Thanks, Bro! ☕ You're awesome!
@nzubehenry445
@nzubehenry445 2 жыл бұрын
Thank you. Now i have a better understanding on this
@pedrofonseca1748
@pedrofonseca1748 2 жыл бұрын
Thanks from Brazil!
@WildNature170
@WildNature170 2 жыл бұрын
clearly understood thanks
@abhishekdas2512
@abhishekdas2512 4 жыл бұрын
You are awesome bro ❤️👍
@BroCodez
@BroCodez 4 жыл бұрын
thanks for watching Abhishek!
@IceBeam93
@IceBeam93 3 жыл бұрын
Thank you so much bro, I finally understood this topic now!
@MissCurlyFriez
@MissCurlyFriez 2 жыл бұрын
holy crap, that was short and sweet.
@unalysuf
@unalysuf 2 жыл бұрын
Thank you so much for your effort bro
@stepbystepcoding4113
@stepbystepcoding4113 3 жыл бұрын
nice dude, DONT STOP MAKING TUTORIALS
@danielmilewski7659
@danielmilewski7659 2 жыл бұрын
Very helpful. Thanks!
@Alexlewis222
@Alexlewis222 Жыл бұрын
super helpful
@mohammadfaisalmalik9501
@mohammadfaisalmalik9501 3 жыл бұрын
Your tutorials are super helpful
@pprsstvz
@pprsstvz Жыл бұрын
Liked, subscribed and well..commented hehe
@developerjunior446
@developerjunior446 3 жыл бұрын
Thanks you a lot
@pa-305
@pa-305 3 жыл бұрын
Best Broooo
@hsn1002
@hsn1002 2 жыл бұрын
You explain so well. Thank you so much)
@KiprutoR
@KiprutoR 2 жыл бұрын
I've struggled with this annotation for a while, been getting wrong explanations of it. I had to comment Thank you.
@Nalanarud
@Nalanarud 2 жыл бұрын
Thanks man! very clear
@DavidPerez-px5bb
@DavidPerez-px5bb 10 ай бұрын
THANKS SO MUCH MAN!!
@dianamilenaarchilacordoba4632
@dianamilenaarchilacordoba4632 5 ай бұрын
great video!!! I'm infinitely grateful for your dedication and big heart to share this knowledge with the world. Thank you soo much
@torki7189
@torki7189 2 жыл бұрын
We love you Bro. 👍
@eydersandino6088
@eydersandino6088 2 жыл бұрын
sweet explanation!
@praveenbalajikalla-ng6mx
@praveenbalajikalla-ng6mx 10 ай бұрын
niceeeee bro
@quanyufeng579
@quanyufeng579 3 жыл бұрын
learn a lot
@ahmetakpnar7700
@ahmetakpnar7700 2 жыл бұрын
it really helped. thx bro!
@MCNOSOK
@MCNOSOK 8 ай бұрын
good bro
@beplt_
@beplt_ 2 жыл бұрын
It helped a lot, really lots T^T thank you..
@minhtetpaing1695
@minhtetpaing1695 3 жыл бұрын
Thank you so much sir.
@huuloc8719
@huuloc8719 3 жыл бұрын
Nice.
@Easy.educantion
@Easy.educantion 2 ай бұрын
Thanks you sir
@pablosanchezalvarez8586
@pablosanchezalvarez8586 8 ай бұрын
comentario por que me lo pediste y me fue util el video (fui obligado)
@charanko3760
@charanko3760 2 жыл бұрын
Love you bro
@arshiaSESH59
@arshiaSESH59 2 жыл бұрын
Thanks alot Bro
@YuvrajSingh-tc7hb
@YuvrajSingh-tc7hb Ай бұрын
soo eassyyy
@jazimjazz6928
@jazimjazz6928 4 жыл бұрын
❤️❤️❤️❤️❤️
@pericn
@pericn 2 жыл бұрын
great video man
@rexdanielndi7807
@rexdanielndi7807 2 жыл бұрын
great
@kemann3815
@kemann3815 3 жыл бұрын
Awsome
@deepin2urheart
@deepin2urheart 5 ай бұрын
sir video on abstract class and interface thanks
@曾毓哲-b1t
@曾毓哲-b1t Жыл бұрын
Thank you very much
@davidgonzalez-ge7ol
@davidgonzalez-ge7ol 3 жыл бұрын
Thank you!
@chinchi1120
@chinchi1120 3 жыл бұрын
you are great! thank you
@Easy.educantion
@Easy.educantion 2 ай бұрын
Sir i wanted to ask, after understanding the basics in java, which framework should i learn in other to become a mobile app developer.
@tharuna609
@tharuna609 Жыл бұрын
thanks man you're awesome
@TheEvertonDias
@TheEvertonDias 2 жыл бұрын
Thanks, Bro!
@balancemyself
@balancemyself Жыл бұрын
yup helped me
@monamoradi5741
@monamoradi5741 Жыл бұрын
amazing bro!
@fatjawns3671
@fatjawns3671 6 ай бұрын
How are you able to use dog and animal method/classes in main even though what you coded isn't in main?
@bongaumusa
@bongaumusa 2 жыл бұрын
Thank you bro
@Tinycode779
@Tinycode779 2 жыл бұрын
Thanks alot
@danielakoyleek3757
@danielakoyleek3757 2 жыл бұрын
Thanks bro
@omkarpatil9886
@omkarpatil9886 4 жыл бұрын
Thank you🤗
@ibrahimylmaz8378
@ibrahimylmaz8378 2 жыл бұрын
thanks bro
@romario92730
@romario92730 3 жыл бұрын
Thanks a lot
@PickleRickkk-cy9xb
@PickleRickkk-cy9xb 8 ай бұрын
@manjish4323
@manjish4323 Жыл бұрын
thank you bro
@inhhai6773
@inhhai6773 3 жыл бұрын
Thank you
@andreebraun7649
@andreebraun7649 Жыл бұрын
👍🏻
@lmao9619
@lmao9619 9 ай бұрын
boom boom
@bruncekpuncek3049
@bruncekpuncek3049 2 жыл бұрын
tnx😃
Java super keyword 🦸‍♂️
8:09
Bro Code
Рет қаралды 108 М.
Java overloaded methods ☎️
5:39
Bro Code
Рет қаралды 95 М.
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 18 МЛН
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН
The Flaws of Inheritance
10:01
CodeAesthetic
Рет қаралды 1 МЛН
#52 Method Overriding in Java
7:57
Telusko
Рет қаралды 184 М.
Java polymorphism 🏁
6:12
Bro Code
Рет қаралды 140 М.
Method Overriding In Java Tutorial #94
7:08
Alex Lee
Рет қаралды 42 М.
Dependency Injection, The Best Pattern
13:16
CodeAesthetic
Рет қаралды 922 М.
Java toString method 🎉
6:39
Bro Code
Рет қаралды 109 М.
Java Polymorphism Fully Explained In 7 Minutes
7:16
Coding with John
Рет қаралды 354 М.
Java static keyword ⚡
8:18
Bro Code
Рет қаралды 128 М.
How to Stop Procrastinating and Finally Take Action
16:31
Ali Abdaal
Рет қаралды 188 М.
Java interface 🦅
7:51
Bro Code
Рет қаралды 226 М.
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН