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

Sdílet
Vložit
  • čas přidán 28. 11. 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...
  • Věda a technologie

Komentáře • 9

  • @user-tg6bc8qr6y
    @user-tg6bc8qr6y Před rokem +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 Před rokem +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.

  • @HelloWorldCode
    @HelloWorldCode Před rokem +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  Před rokem +3

      You are correct. Thanks for the correction.

    • @HelloWorldCode
      @HelloWorldCode Před rokem +1

      @@CodeTechandTutorials no worries, keep up the good work

    • @5589e5
      @5589e5 Před rokem

      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.

  • @DeinlieblingsEmre
    @DeinlieblingsEmre Před rokem

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

  • @thedadoftown1774
    @thedadoftown1774 Před rokem

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

  • @scotttkoss
    @scotttkoss Před rokem

    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!