Introduction To Classes And Objects | C++ Tutorial

Поделиться
HTML-код
  • Опубликовано: 23 ноя 2024

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

  • @udarue
    @udarue 7 месяцев назад +11

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

  • @elijahmiles1062
    @elijahmiles1062 2 года назад +43

    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  2 года назад

      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 Год назад +2

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

    • @RandyDaGamer
      @RandyDaGamer 2 месяца назад

      Indeed.

  • @ussumaneembalo2643
    @ussumaneembalo2643 10 месяцев назад +2

    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.

  • @DreamingEllie
    @DreamingEllie 5 месяцев назад +1

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

  • @BKFirst
    @BKFirst Год назад +6

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

  • @honestlywhatever
    @honestlywhatever 2 месяца назад +2

    Welp that's it. I'm binge watching these videos. I've been using a LOT of resources to learn CPP and your videos are by far the best. I understand the concepts before I even have to think hard. I'm so glad I found this channel

  • @RandomButCool
    @RandomButCool Год назад +2

    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  Год назад

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

  • @qingyanggu4650
    @qingyanggu4650 Год назад +11

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

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

    The blueprint and house analogy brought it together. Thank you

  • @ahtalk9847
    @ahtalk9847 Год назад +2

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

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

    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  Год назад

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

  • @JayySLEEZEE
    @JayySLEEZEE 8 месяцев назад +1

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

  • @aadhuu
    @aadhuu 2 года назад +18

    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 года назад +5

      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.

  • @ApunDatta
    @ApunDatta 7 месяцев назад +1

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

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

    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! :-)

  • @MultiHeywatsup
    @MultiHeywatsup 4 месяца назад +2

    such diversity in classes, najeeb, kulwinder, robert :P

    • @PortfolioCourses
      @PortfolioCourses  4 месяца назад +1

      Haha I’m from Canada, we have extremely diverse classes here. :-)

  • @umarkhalilov9986
    @umarkhalilov9986 2 месяца назад +1

    Best explanation for me❤🎉😊

  • @MoherZO
    @MoherZO 7 месяцев назад +1

    Best tutorial ever.

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

    Wow, you are a natural educator thankyou!

  • @MrJever180
    @MrJever180 5 месяцев назад

    Absolutely amazing explanation!!!!

  • @kimstein907
    @kimstein907 7 месяцев назад

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

  • @PoetryInMotion946
    @PoetryInMotion946 Месяц назад

    Clearly explained 💯

  • @easydctv
    @easydctv 7 месяцев назад

    Nice very detailed explanation!

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

    Great explanation!! This helped me so much.

  • @chadkerr6065
    @chadkerr6065 10 месяцев назад

    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?

    • @thebossamr1798
      @thebossamr1798 5 месяцев назад

      yes you can save the file as .hpp and use the method you said for example #include "bankaccount.hpp"

  • @rodney-l4i
    @rodney-l4i Год назад

    Thank you very much for this explanation

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

    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! :-)

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

    Very good teaching 🎉🎉🎉🎉🎉🎉🎉

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

    thanks for this, really clear and succinct explanation

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

    Very clear explaintation thank you.

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

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

  • @omerfaruksemih8590
    @omerfaruksemih8590 9 месяцев назад

    clear and understandable. Thanks!

  • @bio2020
    @bio2020 2 года назад

    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  2 года назад +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. 🙂

  • @yvanmartinnzeunou2037
    @yvanmartinnzeunou2037 6 месяцев назад

    It's really amazing 👏...

  • @SamuelQuarshie-n1y
    @SamuelQuarshie-n1y 7 дней назад

    Great work

  • @AnnetyMalake
    @AnnetyMalake Месяц назад

    Can't we ask questions in these tutorials??

  • @SwanandJoshi-sj2zb
    @SwanandJoshi-sj2zb 7 месяцев назад

    Which compilwr do you use ?

  • @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!! :-)

  • @amkhrjee
    @amkhrjee 2 года назад +1

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

  • @aledjane2013
    @aledjane2013 11 месяцев назад

    I really appreciate you ❤❤❤

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

    Good coding. Thank you.

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

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

  • @nayanjyoti207
    @nayanjyoti207 2 месяца назад +1

    using the Indian name was awesome 😂

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

    İt is wonderful to watch it.😀

  • @40rdj34
    @40rdj34 2 года назад

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

    • @PortfolioCourses
      @PortfolioCourses  2 года назад +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. :-)

  • @4TqrBTS7
    @4TqrBTS7 4 месяца назад +1

    I don't get it

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

    Please which IDE do you use?

  • @artipatel5745
    @artipatel5745 2 года назад

    what theme do you use?

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

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

  • @ganeshharshith
    @ganeshharshith 7 месяцев назад

    String pin kaduuu
    Int pin

  • @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/

  • @FatihuMandeya
    @FatihuMandeya 5 месяцев назад

    Isn't this the same as not including the class and just typing the bank accounts

    • @lucasvillani5484
      @lucasvillani5484 Месяц назад

      No. Classes have inheritance, methods and the OOP principles applied out of the box.

  • @SamuelAkinyemi-g8f
    @SamuelAkinyemi-g8f 9 месяцев назад +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.❤

    • @SamuelAkinyemi-g8f
      @SamuelAkinyemi-g8f 9 месяцев назад +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_brb
      @BM_brb 5 месяцев назад +1

      jesus came in you