Java inner classes 👩‍🏫

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

КОМЕНТАРІ • 49

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

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

    /* inner class = A class inside of another class.
    useful if a class should be limited in scope.
    usually private, but not necessary
    helps group classes that belong together
    extremely useful for listeners for specific events
    precursor for anonymous inner classes
    */
    Outside out = new Outside();
    Outside.Inside in = out.new Inside();
    in.Greeting();
    }
    //**********************************************************
    public class Outside {
    String x = "Hello ";

    public class Inside{

    String y = "World!";

    public void Greeting()
    {
    System.out.println(x+y);
    }
    }
    }

  • @syednizam8616
    @syednizam8616 2 роки тому +7

    You have amazing ability to simplify programing concepts. Please keep creating programing videos for this channel. It really helps lot of us. Many thanks.

  • @pesterlig
    @pesterlig 4 роки тому +10

    You guys rock! I'd love to see one about servers and clients talking to each other & running threads, like for a multiplayer game - but maybe that's in the one on serialization? My son is a pro dev and he's building a jrpg for fun, but he's super busy. I'm trying to work on it with him, but I've only been studying (mostly java) part-time for about 3 yrs. He's got the game running - server, client, kryo serialization, awt, swing, jframes etc. A couple of screens exist, and characters can move and interact, but there is so much more to build. I really want to add to it, but I'm a bit lost in code. Your videos really help! Thanks so much!!!! Every time I watch one, I hit the like button and leave a comment. And I've subscribed. So, here's to your algorithms!

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

      thanks for watching!

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

    This is a wonderful way to teach an inner class I like it.

  • @trailblazer4227
    @trailblazer4227 3 роки тому +8

    This and a few other videos are missing in the 12 hour video. Or have I just slept there? :-D Anyway this is brilliant, thanks a lot!!!

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

      I also notice dude, glad that I've check the playlist before getting on with the sample project programs. I'm finishing these missing part first before getting on those topics.

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

    Great job! You explain well , more people should see your tutorials!!!

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

      Thank you! I agree that more people should see these lol

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

    ohhh yeah

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

    I appreciate you

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

    Dope!

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

    Bro is good at explanation

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

    thanks bro

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

    Cool!

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

    these tutorials are awesome! Only thing that could improve is the amount :)

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

    Nice

  • @MrLoser-ks2xn
    @MrLoser-ks2xn 2 роки тому

    Thanks

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

    i don't have any comment because you are my best java teacher but i'm here for support you and let you know that there is someone who waiting for your video :D

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

    good background music

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

    80th. Thank you, ma Bro Sensei

  • @MrLoser-ks2xn
    @MrLoser-ks2xn Рік тому

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

    you did great

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

    You are my teacher !

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

    Thanks for the vid!

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

    Wait this wasn't illegal?! (JK love your vids) :D

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

    🤩

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

    boom xx

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

    thank you

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

    Good job bro 👌

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

    thank

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

    Thanks you so much bro

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

    one prayer for youtube algorithm :)

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

    Bro !

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

    ly bro 8

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

    grape

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

    Thanks Broo!

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

    I am a fellow bro

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

    Is there a way to see inner class in project structure? PS: Specifically to intelij

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

    Why you didn't use acces modifiers to your classes members?

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

    hi :)

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

    help, Javadoc not found. Either Javadoc documentation for this item does not exist or you have not added specified Javadoc in the Java Platform Manager or the Library Manager. "" what does it mean, how do i fix it """

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

    thanks bro

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

    thank you