Java constructors 👷

Поділитися
Вставка
  • Опубліковано 21 лис 2024

КОМЕНТАРІ • 368

  • @BroCodez
    @BroCodez  4 роки тому +138

    //********************************************************
    public class Main {
    public static void main(String[] args) {

    Human human1 = new Human("Rick",65,70);
    Human human2 = new Human("Morty",16,50);

    human1.drink();
    human2.eat();

    }
    }
    //********************************************************
    public class Human {
    String name;
    int age;
    double weight;

    Human(String name,int age,double weight){

    this.name = name;
    this.age = age;
    this.weight = weight;
    }

    void eat() {
    System.out.println(this.name+" is eating");
    }
    void drink() {
    System.out.println(this.name+" is drinking *burp*");
    }

    }
    //********************************************************

    • @angieg7257
      @angieg7257 3 роки тому +4

      Thanks Mr. Bro Code!

    • @editIQYT
      @editIQYT Рік тому

      Ayo helped🎉

    • @Tolly633
      @Tolly633 Рік тому +1

      Your code is more valuable for me. I understand everything because of u. Your way of teaching is tremendous. Now I love coding. Thank u bro. What's ur name??

    • @itsme-cb1ky
      @itsme-cb1ky 7 місяців тому

      ♥♥

  • @brettkruskie2699
    @brettkruskie2699 3 роки тому +240

    I can't tell you how much I appreciate your English. The wording and work are easily readable. By far better than the average tutorial.

    • @andycadcam2265
      @andycadcam2265 2 роки тому +3

      I agree. I understand everything with my Pre-Intermediate English.

    • @Golosovtalks
      @Golosovtalks 2 роки тому +3

      @@andycadcam2265 did you watch this with or without subtitles?) i have also this level of english but i cant make out what he talks about without subtitles)
      maybe i have a bad sense of listening)

    • @fer_vicius
      @fer_vicius 2 роки тому +15

      It's definately a breath of fresh air after going through so many Indian tutorials LOL

    • @KoryRuno
      @KoryRuno Рік тому

      Agree with you

    • @Jayderzomb
      @Jayderzomb Рік тому

      not like these indians xD, some have great speaking skills, but some...

  • @cate01a
    @cate01a 4 роки тому +152

    you're literally better than other teacher! keep it up bro!

  • @henryjohnson4774
    @henryjohnson4774 3 роки тому +36

    Mate, I can't thank you enough. you literally (and I mean it), give the best explanations and examples, singlehandedly giving me a CS career

  • @rogerionakayama2593
    @rogerionakayama2593 4 роки тому +55

    You're just too good to be true

    • @BroCodez
      @BroCodez  4 роки тому +8

      thank you for watching Megas!

  • @xXMaDGaMeR
    @xXMaDGaMeR 3 роки тому +25

    This is genuinely one of the best content out there. Appreciate it man, very clear and to the point. Amazing !

  • @IsiahDoesVlogs
    @IsiahDoesVlogs 7 місяців тому +3

    This guy is the best, and he literally always posts the code he works on after.

  • @SonKyoken
    @SonKyoken 27 днів тому +1

    Bro, I can’t even thank you in human words for all the videos you upload, you really saved my life in coding!!!!

  • @themegapkr516
    @themegapkr516 3 роки тому +6

    These are by far the most helpful videos I have come across.

  • @MikeTManio-vv9en
    @MikeTManio-vv9en Рік тому +5

    Bro, you just literally always save me, you're a better professor than my college professor. Always appreciated the tutorials

  • @ibral3606
    @ibral3606 3 роки тому +2

    A real teacher never charges his students. Real knowledge does knot have a price tag! You a living legend Bro!

    • @dumdum7099
      @dumdum7099 7 місяців тому +1

      Yeah bro a real teacher doesn't really need to eat. A real teacher can just eat his real knowledge and keep his real stomach real full.

  • @tiyanibaloyi8404
    @tiyanibaloyi8404 2 роки тому +1

    Ever since I started watching your videos I have learned a lot, you have simplified a lot of concepts.

  • @hk254lyt8
    @hk254lyt8 Рік тому +3

    You don’t need the this keyword again inside the method. You can just write the variable and it’s able to know what variable to assigned to an object from the constructer

  • @MrSlinky
    @MrSlinky 3 роки тому +4

    You are a better professor than my professor. You're a life saver bro!

  • @EmirKaanOgsarim
    @EmirKaanOgsarim Рік тому +5

    Bro besides your one-by-one telling, your clean tongue helped a lot for people who's their first tongue is not English. Thx a lot again.

  • @adityarajsrivastava6580
    @adityarajsrivastava6580 3 роки тому +6

    You taught me more clearly than my teacher or my book could have...
    Maybe more than what I could have planned by conducting experiments by myself!!!

  • @PopeHeavy
    @PopeHeavy 11 місяців тому +1

    I like how much more informative and laconic it is than paid courses, keep it up

  • @RtsFps1
    @RtsFps1 9 місяців тому

    Thank you for making those “mistakes” and then explaining why things are done a certain way.

  • @4everkind9
    @4everkind9 2 місяці тому

    Your coding tutorials are absolute gold! 💻✨ The way you break down complex concepts makes learning so much easier, especially for beginners like me. Please keep the content coming-you're helping a lot of us out here! 🙌🔥 Thanks for making coding accessible and fun!

  • @dylanwardlow9438
    @dylanwardlow9438 2 роки тому

    10 minutes of my life that I'm happy I'll never get back. 10/10 the best

  • @aliesmail4500
    @aliesmail4500 Рік тому

    you are a genius teacher. please, don't stop making such helpful videos.

  • @amirfakhte9156
    @amirfakhte9156 Рік тому

    I really like that you try your best to explain things as easy to understand as possible.thanks it was very helpful

  • @Ziggy0120
    @Ziggy0120 3 роки тому +1

    Best constructor tutorial I think I have seen on youtube. Well done you helped me out mega on a big part of my project im stuck on.

  • @JuliHoffman
    @JuliHoffman 2 роки тому +2

    Wow! This actually made sense. I appreciate these videos so much!

  • @Shodan159
    @Shodan159 3 роки тому +22

    Infinitely more helpful than my university lectures. Thanks heaps!

  • @davidmurege
    @davidmurege 2 роки тому +2

    I may not be in a position to donate something to you. But may God bless you for what you are doing for free. I graduated from campus last year with zero knowledge of programming. But to be honest. I will be an hero in a year or so.

  • @antonioriley3295
    @antonioriley3295 Рік тому

    Thanks a lot, I've seen a good amount of constructor videos but yours was the only one that made it make sense for me.

  • @shyam.upadhyay
    @shyam.upadhyay 3 роки тому

    Apart from explaining everything very clearly, Bro got good taste in shows too.

  • @juliotitosagastegui9453
    @juliotitosagastegui9453 4 місяці тому

    i dont even watch the lectures anymore i go straight to your account, i love your videos they have saved me a lot of time. i love you bro code

  • @apexhacker346
    @apexhacker346 3 роки тому +1

    WHERE WAS BRO CODE THIS WHOLE SEMESTER! I LOVE YOU MANNNN

    • @BroCodez
      @BroCodez  3 роки тому

      "I love you too random citizen!"

  • @nycollasmenezes5028
    @nycollasmenezes5028 Рік тому +2

    Keep up with the content, bro. You have helped a lot of people new to the programming community. Your videos are great, mainly because you not seem to be in a hurry to end the explanation, you take your time and this e a very positive behavior while teaching.
    When I get my first payment working with Java, I'll definitely donate to you, to show my gratitude. Thanks a lot from Brazil.

  • @lake2225
    @lake2225 2 роки тому

    thank god for people like u. you r really come in clutch

  • @mjc7172
    @mjc7172 3 роки тому +1

    daaang nobody can change my mind that you're the best at teaching !!

  • @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

  • @vincentchoo7471
    @vincentchoo7471 4 роки тому +2

    You give clear explanation. Great job!

    • @BroCodez
      @BroCodez  4 роки тому

      thank you for watching Vincent!

  • @asheernaseer4210
    @asheernaseer4210 2 роки тому

    I'm really love you'r teaching, because you helping me many ways.
    thank you so much

  • @MuhammadZohaib-mr6su
    @MuhammadZohaib-mr6su 3 місяці тому

    Thanks for uploading for this video because am very easily understand constracter and this key word

  • @mohamedelfadli3125
    @mohamedelfadli3125 Рік тому

    You make things easy to understand.

  • @ctluwua7695
    @ctluwua7695 3 роки тому

    I was really confused making constructors!!!!!!
    But you really helped me !

  • @ktos2144
    @ktos2144 2 роки тому +1

    Thank you so much. Now I know what is constructors, class and methods. My teacher didn't say it that readable like you.

  • @salmerongomezsebastian7819
    @salmerongomezsebastian7819 2 роки тому +1

    I have learnt more from you than from my college, keep it up! Awesome sutff, waba laba dub dub!!!

  • @ACE-qd3sw
    @ACE-qd3sw Рік тому

    Whenever I dont understand a concept this is where I come to tysm broCode

  • @kishanpareek2848
    @kishanpareek2848 2 роки тому +1

    You are Awesome! Wishing You Millions of subscribers .

  • @Jealakllz
    @Jealakllz Рік тому

    Really appreciate all these tutorials and videos you do, it’s a great help! Thank you sir 🙏

  • @1nut167
    @1nut167 7 місяців тому

    HUGE LIGHTBULB MOMENT. U SAVE MY GRADE YET AGAIN

  • @jeevanandham1732
    @jeevanandham1732 2 роки тому

    Excellent work, for the difference between the Constructor and normal object

  • @behrangfattahi9328
    @behrangfattahi9328 2 роки тому

    I know all this but you are explaining it so good that I watch them all again and again

  • @senayjoh
    @senayjoh Рік тому +1

    perfect explanation.. really helpful thanks

  • @pushankarmakar1783
    @pushankarmakar1783 2 роки тому

    best video series on java i've seen yet

  • @miguellarios5034
    @miguellarios5034 3 роки тому

    Sir, I was about to quiet coding… you saved me.

  • @hisokadu06
    @hisokadu06 3 роки тому

    Couldn't remember why we needed the constructor in java all turorial teach you how you creat them and use them but not the why ... thx man rly

  • @chrisgeorgenkuutu8492
    @chrisgeorgenkuutu8492 Рік тому

    I love your videos, so much educative and easy to understand and follow along...much better than my school teachers...i am happy to have found this channel. and have already recommended it to many people that i know.

  • @Mangafic_Dino
    @Mangafic_Dino 4 роки тому +6

    Thank you so much! Your videos are really helping me, so good! 😃🤩💪🏻

    • @BroCodez
      @BroCodez  4 роки тому +1

      thanks for watching Dino

  • @omersond4891
    @omersond4891 3 роки тому +1

    thanks for this great explanation

  • @yarnyweb2144
    @yarnyweb2144 3 роки тому

    That was good. Just the right pace.

  • @yellowhellow-wi9gi
    @yellowhellow-wi9gi 20 днів тому +1

    your 10 minutes video is equal to my teachers 3 hourse course

  • @rose4285
    @rose4285 Рік тому

    GREAT LESSON!!! I definitely now understand this topic

  • @ladalll1303
    @ladalll1303 2 роки тому +2

    Great explanation! It is super well structured and clear. I have to watch your videos while taking other Java course because you explain it so well! Thank you again!

    • @maxwelltv5075
      @maxwelltv5075 Рік тому

      exactly what i was thinking about it. I purchased the best seller java course in Udemy, and its nowhere near bro code.

  • @erolf4532
    @erolf4532 Рік тому

    no bs, pure info. many thanks👍

  • @Kapus10
    @Kapus10 2 місяці тому

    very helpful to pin the code, it's nice for note taking.

  • @SodiqjonNomonjonov-y9n
    @SodiqjonNomonjonov-y9n Рік тому

    i've learned java construction.Thanks for this video.

  • @m.l.c.m.madhawa4649
    @m.l.c.m.madhawa4649 2 роки тому +1

    Bro, Your explanations are easy to understand than my university lectures
    Thanks, a lot man!

  • @maciejmyslinski7820
    @maciejmyslinski7820 4 роки тому +7

    Nice explanation. It is not the first time when I meet with OOP, but there is one thing which interest me. In Main class whenever we were creating function/method then at the beginning we are declaring public static void/int and name, but here we are only adding void, so I'm curious what is the difference and why we are not adding public static keywords?

    • @BroCodez
      @BroCodez  4 роки тому +8

      It's not necessary to add public, that's just a habit of mine. I'm creating new videos to that show that you do not need to do that.

  • @lulomega4001
    @lulomega4001 2 роки тому

    You are better than my prof at explaining, thanks a lot man you help a lot in my university studies

  • @eachcha7666
    @eachcha7666 3 роки тому

    This is AWESOME! I learn more than other youtubers. Thanks

  • @harshkulkarni8713
    @harshkulkarni8713 2 роки тому +1

    big fan from india you are like mentor to me
    🤗

  • @azerpashahuseynli444
    @azerpashahuseynli444 3 роки тому

    Perfect explanation, better than all other videos

  • @ashish_prajapati_tr
    @ashish_prajapati_tr 3 роки тому +1

    Small and efficient video

  • @manishmoger8177
    @manishmoger8177 Рік тому

    hello sir, I have never commented on any youtube videos but your videos are amazing and easy to understand far more better than my university lecturers.😊😊

  • @RealChikTVtainment
    @RealChikTVtainment 2 роки тому

    Thank you for providing the code in the comments. I was able to print it out and write notes on it. This makes the code more tangible which allows me to see the how, why, and where of the code! Now I can understand this! This helps tremendously!! Keep up the good work Bro!

  • @IntahX
    @IntahX 2 роки тому

    Easy and Straight to the point!! You're really talented in explaining complex things that's easy to understand. Keep it up!

  • @andrejsulc3175
    @andrejsulc3175 2 роки тому

    Thank you for making this video. It helped me a lot, to understand this topic.

  • @ligdjumvidja8294
    @ligdjumvidja8294 8 місяців тому

    Explained superbly mate thanks a lot.

  • @broderickjohnson7167
    @broderickjohnson7167 3 роки тому

    An amazing suppliment to my programming class

  • @Tinycode779
    @Tinycode779 2 роки тому

    Thanks for saving me from watching 1hr long videos on each topic which you explain within 2-10 minutes.
    You literally great BROCODE SENSEI!.

  • @mryoloTHEgreek
    @mryoloTHEgreek 8 місяців тому +1

    QUESTION: Why we have to declare the variables of the object in class human twice. One in the begining of the class and one in the constructor's brackets???

    • @psseudx
      @psseudx 6 місяців тому +1

      We do not declare them in the brackets. We just pass them as parameters

    • @mryoloTHEgreek
      @mryoloTHEgreek 6 місяців тому +1

      @@psseudx thank you!!!!!

  • @evryon1810
    @evryon1810 3 роки тому +1

    Huge

  • @gebreluatewodros1425
    @gebreluatewodros1425 Рік тому

    its really helpfull but if you could show all the codes in one class that would be awsome so that i can tell what the difference and try in on mine going back and forth is a bit hard to ..

  • @Mtftq
    @Mtftq 10 місяців тому

    thank you bro, your examples helping a lot

  • @kagisomosehla4647
    @kagisomosehla4647 2 роки тому

    I was smiling alone, you making coding so interesting😊

  • @_NaveenKhandekar_APRIL
    @_NaveenKhandekar_APRIL 2 роки тому

    watched manyyy YT videos but by far bro code is the besttt!

  • @s0db544
    @s0db544 Рік тому

    I just wanna say that I love you and your page man, a fan of rick and morty and explaining everything so perfectly. thank you *sorry for bad english*

  • @piusgitonga5143
    @piusgitonga5143 7 днів тому

    Great content, easy to understand.

  • @eugenezuev7349
    @eugenezuev7349 7 місяців тому

    it's a very clear explanation, thanks

  • @josephjackson7085
    @josephjackson7085 11 місяців тому

    jesus christ i wish more schools and guides would use plain english. literally the use of simple words makes everything click. It took me until this video to realize that this whole process is very similar to python function calls with a twist. thank you

  • @kr_m7md589
    @kr_m7md589 Рік тому

    you're literally better than my teacher , thx.

  • @nutkimheng7130
    @nutkimheng7130 4 місяці тому

    This video is very useful🥳🤠

  • @jordyramirez6078
    @jordyramirez6078 Рік тому

    Thanks bro!! I understood more in 10 minutes video from you than my teacher in 2 hours meeting xD

  • @bimarshag6748
    @bimarshag6748 Місяць тому

    great tutorial and in-depth explanations. keep it up Bro Code!

  • @kingcrashplays
    @kingcrashplays 3 роки тому +2

    Ayyy @ 6:45 Rick and Morty, nice.

  • @elvastaudinger4991
    @elvastaudinger4991 3 роки тому

    you are a very good teacher!

  • @ctluwua7695
    @ctluwua7695 3 роки тому

    Best teacher in the WORLD( );

  • @archerx91x60
    @archerx91x60 4 роки тому +1

    Agreed very helpful video

    • @BroCodez
      @BroCodez  4 роки тому

      thanks for watching Archer

  • @quanyufeng579
    @quanyufeng579 2 роки тому

    amazing video

  • @erniewhite7875
    @erniewhite7875 Рік тому

    One stop shop for programming knowledge

  • @novalessthanthree
    @novalessthanthree 10 місяців тому

    thank you mr. code very helpful

  • @rm07078
    @rm07078 7 місяців тому

    So this. is something like self. in python, very good

  • @rblahunka
    @rblahunka Рік тому

    Awesome stuff. Thank you

  • @jksharma7
    @jksharma7 2 роки тому

    Thanks . very good

  • @irienirien555
    @irienirien555 Рік тому

    Sir, if you only know how this video helped me in my dilemma. thank you so much. I was actually, for almost 2 days looking for a solution in my practice programming as I am currently doing an IT schooling, then i stumbled unto your video, and right away i liked your video and subscribed your channel as the least i can do to thank you.... :D