Java constructors 👷

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 ม.ค. 2025

ความคิดเห็น • 378

  • @BroCodez
    @BroCodez  4 ปีที่แล้ว +146

    //********************************************************
    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 2 ปีที่แล้ว

      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 9 หลายเดือนก่อน

      ♥♥

  • @brettkruskie2699
    @brettkruskie2699 3 ปีที่แล้ว +258

    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 ปีที่แล้ว +16

      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 ปีที่แล้ว +158

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

    • @Nikkhil492
      @Nikkhil492 3 ปีที่แล้ว +2

      he's amazing

  • @henryjohnson4774
    @henryjohnson4774 3 ปีที่แล้ว +38

    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

  • @xXMaDGaMeR
    @xXMaDGaMeR 3 ปีที่แล้ว +25

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

  • @rogerionakayama2593
    @rogerionakayama2593 4 ปีที่แล้ว +59

    You're just too good to be true

    • @BroCodez
      @BroCodez  4 ปีที่แล้ว +10

      thank you for watching Megas!

  • @MikeTManio-vv9en
    @MikeTManio-vv9en ปีที่แล้ว +6

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

  • @themegapkr516
    @themegapkr516 3 ปีที่แล้ว +7

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

  • @SonKyoken
    @SonKyoken 2 หลายเดือนก่อน +1

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

  • @IsiahDoesVlogs
    @IsiahDoesVlogs 8 หลายเดือนก่อน +3

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

  • @adityarajsrivastava6580
    @adityarajsrivastava6580 4 ปีที่แล้ว +7

    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!!!

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

  • @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 8 หลายเดือนก่อน +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.

  • @yellowhellow-wi9gi
    @yellowhellow-wi9gi 2 หลายเดือนก่อน +3

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

  • @MrSlinky
    @MrSlinky 3 ปีที่แล้ว +4

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

  • @dylanwardlow9438
    @dylanwardlow9438 2 ปีที่แล้ว

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

  • @PopeHeavy
    @PopeHeavy ปีที่แล้ว +1

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

  • @Shodan159
    @Shodan159 3 ปีที่แล้ว +22

    Infinitely more helpful than my university lectures. Thanks heaps!

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

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

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

  • @JuliHoffman
    @JuliHoffman 2 ปีที่แล้ว +2

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

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

  • @juliotitosagastegui9453
    @juliotitosagastegui9453 6 หลายเดือนก่อน

    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

  • @aliesmail4500
    @aliesmail4500 ปีที่แล้ว

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

  • @4everkind9
    @4everkind9 4 หลายเดือนก่อน

    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!

  • @amirfakhte9156
    @amirfakhte9156 ปีที่แล้ว

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

  • @antonioriley3295
    @antonioriley3295 2 ปีที่แล้ว

    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.

  • @mjc7172
    @mjc7172 3 ปีที่แล้ว +1

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

  • @salmerongomezsebastian7819
    @salmerongomezsebastian7819 2 ปีที่แล้ว +1

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

  • @kishanpareek2848
    @kishanpareek2848 3 ปีที่แล้ว +1

    You are Awesome! Wishing You Millions of subscribers .

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

  • @MuhammadZohaib-mr6su
    @MuhammadZohaib-mr6su 4 หลายเดือนก่อน

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

  • @senayjoh
    @senayjoh ปีที่แล้ว +1

    perfect explanation.. really helpful thanks

  • @vincentchoo7471
    @vincentchoo7471 4 ปีที่แล้ว +2

    You give clear explanation. Great job!

    • @BroCodez
      @BroCodez  4 ปีที่แล้ว

      thank you for watching Vincent!

  • @RtsFps1
    @RtsFps1 11 หลายเดือนก่อน

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

  • @asheernaseer4210
    @asheernaseer4210 2 ปีที่แล้ว

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

  • @lake2225
    @lake2225 2 ปีที่แล้ว

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

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

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

  • @shyam.upadhyay
    @shyam.upadhyay 3 ปีที่แล้ว

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

  • @m.l.c.m.madhawa4649
    @m.l.c.m.madhawa4649 3 ปีที่แล้ว +1

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

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

  • @jeevanandham1732
    @jeevanandham1732 2 ปีที่แล้ว

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

  • @umidjonhamidov2356
    @umidjonhamidov2356 10 หลายเดือนก่อน +1

    super tutorial 😎😎😎

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

  • @apexhacker346
    @apexhacker346 4 ปีที่แล้ว +1

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

    • @BroCodez
      @BroCodez  4 ปีที่แล้ว

      "I love you too random citizen!"

  • @harshkulkarni8713
    @harshkulkarni8713 2 ปีที่แล้ว +1

    big fan from india you are like mentor to me
    🤗

  • @ramano522
    @ramano522 หลายเดือนก่อน

    the video was very helpful thank you

  • @Jealakllz
    @Jealakllz ปีที่แล้ว

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

  • @ctluwua7695
    @ctluwua7695 3 ปีที่แล้ว

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

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

  • @azerpashahuseynli444
    @azerpashahuseynli444 3 ปีที่แล้ว

    Perfect explanation, better than all other videos

  • @rose4285
    @rose4285 ปีที่แล้ว

    GREAT LESSON!!! I definitely now understand this topic

  • @behrangfattahi9328
    @behrangfattahi9328 3 ปีที่แล้ว

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

  • @bimarshag6748
    @bimarshag6748 2 หลายเดือนก่อน

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

  • @pushankarmakar1783
    @pushankarmakar1783 2 ปีที่แล้ว

    best video series on java i've seen yet

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

  • @1nut167
    @1nut167 9 หลายเดือนก่อน

    HUGE LIGHTBULB MOMENT. U SAVE MY GRADE YET AGAIN

  • @omersond4891
    @omersond4891 3 ปีที่แล้ว +1

    thanks for this great explanation

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

  • @ctluwua7695
    @ctluwua7695 3 ปีที่แล้ว

    Best teacher in the WORLD( );

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

  • @ashish_prajapati_tr
    @ashish_prajapati_tr 3 ปีที่แล้ว +1

    Small and efficient video

  • @ACE-qd3sw
    @ACE-qd3sw ปีที่แล้ว

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

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

  • @lulomega4001
    @lulomega4001 2 ปีที่แล้ว

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

  • @nutkimheng7130
    @nutkimheng7130 5 หลายเดือนก่อน

    This video is very useful🥳🤠

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

  • @mohamedelfadli3125
    @mohamedelfadli3125 ปีที่แล้ว

    You make things easy to understand.

  • @jordyramirez6078
    @jordyramirez6078 ปีที่แล้ว

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

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

  • @andrejsulc3175
    @andrejsulc3175 2 ปีที่แล้ว

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

  • @_NaveenKhandekar_APRIL
    @_NaveenKhandekar_APRIL 2 ปีที่แล้ว

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

  • @erolf4532
    @erolf4532 ปีที่แล้ว

    no bs, pure info. many thanks👍

  • @O1011O
    @O1011O 12 วันที่ผ่านมา

    Keep going bro best programming channel fr

  • @SodiqjonNomonjonov-y9n
    @SodiqjonNomonjonov-y9n ปีที่แล้ว

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

  • @quanyufeng579
    @quanyufeng579 2 ปีที่แล้ว

    amazing video

  • @kingcrashplays
    @kingcrashplays 3 ปีที่แล้ว +2

    Ayyy @ 6:45 Rick and Morty, nice.

  • @Kapus10
    @Kapus10 3 หลายเดือนก่อน

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

  • @eachcha7666
    @eachcha7666 3 ปีที่แล้ว

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

  • @yarnyweb2144
    @yarnyweb2144 3 ปีที่แล้ว

    That was good. Just the right pace.

  • @eugenezuev7349
    @eugenezuev7349 8 หลายเดือนก่อน

    it's a very clear explanation, thanks

  • @ligdjumvidja8294
    @ligdjumvidja8294 9 หลายเดือนก่อน

    Explained superbly mate thanks a lot.

  • @piusgitonga5143
    @piusgitonga5143 หลายเดือนก่อน

    Great content, easy to understand.

  • @СветланаНикитина-у6е
    @СветланаНикитина-у6е ปีที่แล้ว

    Awesome video! I am smashing the like button

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

  • @baubaudinamo
    @baubaudinamo 4 ปีที่แล้ว +1

    keep it up

  • @kagisomosehla4647
    @kagisomosehla4647 2 ปีที่แล้ว

    I was smiling alone, you making coding so interesting😊

  • @kr_m7md589
    @kr_m7md589 ปีที่แล้ว

    you're literally better than my teacher , thx.

  • @miguellarios5034
    @miguellarios5034 3 ปีที่แล้ว

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

  • @arshiaSESH59
    @arshiaSESH59 2 ปีที่แล้ว

    Nice explanation

  • @archerx91x60
    @archerx91x60 4 ปีที่แล้ว +1

    Agreed very helpful video

    • @BroCodez
      @BroCodez  4 ปีที่แล้ว

      thanks for watching Archer

  • @novalessthanthree
    @novalessthanthree 11 หลายเดือนก่อน

    thank you mr. code very helpful

  • @rohanjain2008
    @rohanjain2008 3 ปีที่แล้ว +1

    Thanks bro for teaching java so fruitfully
    *RohanJ

  • @parsachavoshu8797
    @parsachavoshu8797 3 ปีที่แล้ว

    it was great

  • @Mtftq
    @Mtftq ปีที่แล้ว

    thank you bro, your examples helping a lot

  • @evryon1810
    @evryon1810 3 ปีที่แล้ว +1

    Huge

  • @NitaiZohar
    @NitaiZohar 9 หลายเดือนก่อน +1

    THNAKS SO MUCK BROOO