Introduction To Classes And Objects | C++ Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 ม.ค. 2022
  • An introduction to classes, objects, and object-oriented programming in C++, including member variables (attributes) and member functions (methods). Source code: github.com/portfoliocourses/c.... Check out www.portfoliocourses.com to build a portfolio that will impress employers!
  • แนวปฏิบัติและการใช้ชีวิต

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

  • @DreamingEllie
    @DreamingEllie 8 วันที่ผ่านมา

    this is literally the only tutorial where classes makes sense to me. i am so grateful you have no idea.

  • @elijahmiles1062
    @elijahmiles1062 ปีที่แล้ว +23

    first time in 20 yrs ever complimenting how sum1 explains something, rly didn't get this stuff b4 watching the vid, Well done bro.

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

      Thank you very much Elijah! I really appreciate you taking the time to leave this positive feedback, and I'm glad this video helped you to understand these concepts! :-)

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

      Same! This made classes looks easy to grasp, while my lecturer made it look astronomical difficult

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

    your explanations are most detailed, structured and easy to understand in TH-cam. Thank you for your effort!

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

    This is the best explanation of classes in C++ I've found so far. Thank you!!

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

    Very good explanation!. Definitely gonna recommend your channel to my friends!. Please continue your work sir! You'll gain many more subs for sure!

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

      Thank you Aditya! :-) This channel is just getting started, there are so many more topics I want to cover. Thanks for sharing it with your friends, that's much appreciated.

  • @ahtalk9847
    @ahtalk9847 7 หลายเดือนก่อน +1

    I appreciate this video my guy, it simplified it while giving example code that can actuallly be used in a regular program.

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

      I’m reply glad you enjoyed it! :-)

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

    My biggest lack lack is to find this channel just before my exams, thank you very much, your explanation is the most clearly i ever found, even though im not i native inglish.

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

    Thank you very much, this was really helpful for understanding the basics of how classes work, much appreciated!

  • @BKFirst
    @BKFirst 8 หลายเดือนก่อน +1

    thank you for explaining this in the simplist way possible so my simple brain can comprehend it

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

    after hours of searching i found u and i finally understood thank you so much

  • @MrJever180
    @MrJever180 10 วันที่ผ่านมา

    Absolutely amazing explanation!!!!

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

    Thank you so much. You have helped me with this material

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

    Wow, you are a natural educator thankyou!

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

      You're welcome, I'm glad you enjoyed the video! :-)

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

    The blueprint and house analogy brought it together. Thank you

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

      That's excellent, and you're welcome! :-)

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

      Anal -ogy lol

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

    Nice very detailed explanation!

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

    Thanks ❤, I understand it better now

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

    This was super helpful for understanding this topic.

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

      I’m super happy to hear it was helpful for you! :-)

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

    Great explanation!! This helped me so much.

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

      I'm glad to hear the video helped you out! :-D

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

    Thank you so much for this video -- I'm currently taking an intermediate C++ course and it's such a hard class with C++ being so difficult to learn. I'll share this with my friends and our class discord. We have to use the friend keyword and other stuff to overload the ostream operator (I think) to be able to custom 'print' an object and it's all really daunting.

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

      You’re very welcome Shah, and thanks so much for sharing this with your class discord, I really appreciate that! :-)

  • @yvanmartinnzeunou2037
    @yvanmartinnzeunou2037 21 วันที่ผ่านมา

    It's really amazing 👏...

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

    Just dropped a Subscribe because man your videos help immensely!

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

      I'm so glad to hear these videos have helped you, and welcome aboard!! :-)

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

    I got so lost in my college c++ class I needed a recap and your vid realy helped me understand how classes work and why they would be used.

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

      That’s excellent that the video helped you out, good luck in that c++ class! :-)

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

    thank you very much , it was hard for me to understand classes because i didnt know why we would use them and their practical uses , it makes coding much easier when we understand the practical application ideas behind it instead of just trying to learn classes and objects without knowing why we need them .

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

      You're very welcome! :-) And I totally agree that practical applications of ideas can help us to understand things.

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

    clear and understandable. Thanks!

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

    thanks for this, really clear and succinct explanation

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

      You're welcome, I'm glad you found it clear! :-D

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

    I really appreciate you ❤❤❤

  • @user-eq6dq5jr7p
    @user-eq6dq5jr7p ปีที่แล้ว

    Thank you very much for this explanation

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

    Very clear explaintation thank you.

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

      You're very welcome, I'm glad that you enjoyed the video! :-)

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

    Best tutorial ever.

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

      I'm glad you enjoyed it! :-)

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

    Very good teaching 🎉🎉🎉🎉🎉🎉🎉

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

    I'm new to programming in general, but trying to learn more. Could you clean up this main code even further by putting the BankAccount class into a header file then #include ? Or is that not how that works?

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

    Good coding. Thank you.

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

      You're welcome Anthony, I'm glad you enjoyed it! :-)

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

    İt is wonderful to watch it.😀

  • @SwanandJoshi-sj2zb
    @SwanandJoshi-sj2zb หลายเดือนก่อน

    Which compilwr do you use ?

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

    Indian names in the examples lol. Video was awesome as usual.

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

    9:01 in video.....but void withdraw(int amount) .... void functions do not return a value though? and you want balance value to be returned? why didn't you use a value returning function there? im new

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

      The goal is not to return a value, so that's why we make it a void function. The goal is to update the member variable balance, such that it reflects the new balance after a withdraw has been made. 🙂

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

    Is it better to use a struct or a class?

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

      That's a really great question, but the answer is a bit complicated and even a bit subjective, so I might need to make a video on that one day. 🙂You might find these resources helpful though as they answer the question:
      stackoverflow.com/questions/54585/when-should-you-use-a-class-vs-a-struct-in-c
      www.fluentcpp.com/2018/03/02/choose-struct-class/

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

    Please which IDE do you use?

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

      In this video I am using Xcode on Mac OS. :-)

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

    what theme do you use?

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

      In this video I am using the Default (Light) theme in Xcode on a Mac. :-)

  • @40rdj34
    @40rdj34 ปีที่แล้ว

    I thought when you include a pin you will insert int instead of string

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

      A pin to access the account? It would probably be better to use a string because if something had the pin 0023 the int value would just be 23. :-)

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

    String pin kaduuu
    Int pin

  • @user-bv2bu7ub7z
    @user-bv2bu7ub7z 3 หลายเดือนก่อน +1

    JESUS CHRIST loves you. JESUS CHRIST died for our sins. He wants to have a closer relationship with you. JESUS CHRIST is coming soon. you can have a closer relationship with JESUS CHRIST by becoming a born-again Christian and also by reading your Bible daily. Heaven is real.❤

    • @user-bv2bu7ub7z
      @user-bv2bu7ub7z 3 หลายเดือนก่อน +1

      Personal relationships with JESUS CHRIST will help make heaven. GOD bless you. Please share this message with more people. If JESUS CHRIST comes right now where would you go heaven or hell? Think about that. Also, try attending a Christian church around you. Hell is real. JESUS Loves You.❤

    • @BM-su7kc
      @BM-su7kc 4 วันที่ผ่านมา +1

      jesus came in you