Constructor Delegation | C++ Tutorial

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

КОМЕНТАРІ • 32

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

    I am grateful that there is a youtube channel that helps with questions about programming language C.

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

      Awesome! :-) C++ is next on the list, and then others will be covered too eventually. Lots more C to do though.

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

    constructors have always confused me, thanks for clearing this up man!

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

    Awesome video. I understood it before but got a bit fuzzy and this cleared it up 100%. Thanks a lot !

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

    Nice tutorial, probably gonna check out some of the others while catching back up in c++ class

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

      Thanks Adam, and that’s excellent you may watch more too! :-)

  • @ankitanand4101
    @ankitanand4101 4 дні тому

    helpful video now i got the concept thanks

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

    Another great video. Thank you very much.

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

    Thanks a lot, I understood everything.

  • @unknown-vr5cy
    @unknown-vr5cy 10 місяців тому

    Great video. Thanks!!

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

    on 5:43, since the second constructor has the first one delegated, couldnt we just do this instead?
    Rectangle(string c) : Rectangle(l,w) ?
    what I mean is that since the second constructor takes Length and width from constructor 1, delete those parameters from constructor 2?

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

      No I don't think that will work, we still need to specify all the parameters of the constructor even if it only uses them to call another constructor.

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

      @@PortfolioCourses aight, thanks

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

    that was informative,thanks a lot

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

    Thanks..... Is two methode rectangle overlowding?

  • @srinathTingilkar-cm-
    @srinathTingilkar-cm- 2 роки тому +1

    Very appreciative sir,
    Your are explaining very nice ☺️
    make more videos on c++
    And thankyou

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

      Thank you! :-) I've made this playlist here of C++ videos, and I plan to make many more C++ videos: ua-cam.com/play/PLA1FTfKBAEX6BdpNaWp2uw-YspHwY7qwW.html

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

    wait thats where i know you from. ur the guy from the office who tried to convince pam to stay in new york. I forgot his name. Pete? idk, but I liked ur work. keep it up.

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

      Hahaha Pete was the intern! Alex was the guy that tried to convince Pam to stay in New York. I can assure that I would never do anything to keep Jim and Pam apart. :-P Glad to hear that you enjoy the work Ivan! :-)

  • @rahul-ux8mi
    @rahul-ux8mi 2 роки тому

    well..done pal! 😊

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

    thank for this great effort

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

      You’re welcome, and thank you very much Ahmed! :-)

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

    Couldn’t you just make a function call at the beginning of the constructor?

    • @AnaMaddison
      @AnaMaddison 29 днів тому

      Technically, depending on the scope of the function and where your files are implemented but it would not be right to define a totally separate function when the constructor can be delegated in this manner

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

    thank you so much..