Explaining the RULE OF THREE (C++ Class Standards)

Поделиться
HTML-код
  • Опубликовано: 28 ноя 2022
  • Understanding how your class manages memory can be crucial to the proper operation of your software.
    next video (rule of five & zero): • Explaining the RULE OF...
  • НаукаНаука

Комментарии • 9

  • @StarbusterShow
    @StarbusterShow Год назад +3

    I'm a senior web developer, just getting into game dev on my spare time, so I like these videos, haha, no time to learn cpp properly

  • @5589e5
    @5589e5 Год назад +1

    I've never heard about rule of 3. Sometimes on interviews I just don't get what interviewer talks about till he starts to explain and then I like "uuuuuhh i knew it".
    Thx for CMake videos.

  • @DeinlieblingsEmre
    @DeinlieblingsEmre Год назад

    I learn better when someone explains me stuff and shows it as well. So keep making videos like this please.

  • @HelloWorldCode
    @HelloWorldCode Год назад +5

    The "new" keyword actually puts stuff on the heap and not the stack. The stack is what lives just temporarily inside the function

    • @CodeTechandTutorials
      @CodeTechandTutorials  Год назад +3

      You are correct. Thanks for the correction.

    • @HelloWorldCode
      @HelloWorldCode Год назад +1

      @@CodeTechandTutorials no worries, keep up the good work

    • @5589e5
      @5589e5 Год назад

      Actually, there are other several new operators, one of them can put data on the stack, another just allocates bytes without putting something at all.

  • @scotttkoss
    @scotttkoss Год назад

    this is awesome! I am currently going through my second year as a cs major. So learning all of this stuff, and having nice resources for it is really helpful. thank you!

  • @thedadoftown1774
    @thedadoftown1774 Год назад

    The way you explained shadow copy made it click for me, thank you!