Introduction To Classes And Objects | C++ Tutorial

Поділитися
Вставка
  • Опубліковано 5 січ 2025

КОМЕНТАРІ • 85

  • @udarue
    @udarue 9 місяців тому +16

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

  • @elijahmiles1062
    @elijahmiles1062 2 роки тому +47

    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 роки тому +1

      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 4 місяці тому

      Indeed.

  • @ussumaneembalo2643
    @ussumaneembalo2643 11 місяців тому +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 7 місяців тому +2

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

  • @honestlywhatever
    @honestlywhatever 4 місяці тому +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

  • @BKFirst
    @BKFirst Рік тому +6

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

  • @qingyanggu4650
    @qingyanggu4650 Рік тому +11

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

  • @JayySLEEZEE
    @JayySLEEZEE 10 місяців тому +1

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

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

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

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

  • @aubreydebruyn84
    @aubreydebruyn84 Рік тому +1

    The blueprint and house analogy brought it together. Thank you

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

  • @ApunDatta
    @ApunDatta 8 місяців тому +1

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

  • @MultiHeywatsup
    @MultiHeywatsup 6 місяців тому +2

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

    • @PortfolioCourses
      @PortfolioCourses  5 місяців тому +1

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

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

  • @umarkhalilov9986
    @umarkhalilov9986 4 місяці тому +1

    Best explanation for me❤🎉😊

  • @Leetngreet
    @Leetngreet Рік тому

    Wow, you are a natural educator thankyou!

  • @MoherZO
    @MoherZO 9 місяців тому +1

    Best tutorial ever.

  • @PoetryInMotion946
    @PoetryInMotion946 2 місяці тому

    Clearly explained 💯

  • @rezahajivand7498
    @rezahajivand7498 Рік тому

    Very good teaching 🎉🎉🎉🎉🎉🎉🎉

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

    Thanks Portfolio, you're a cool guy

  • @MrJever180
    @MrJever180 7 місяців тому

    Absolutely amazing explanation!!!!

  • @easydctv
    @easydctv 9 місяців тому

    Nice very detailed explanation!

  • @studentHoobs
    @studentHoobs Рік тому

    Great explanation!! This helped me so much.

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

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

  • @yvanmartinnzeunou2037
    @yvanmartinnzeunou2037 7 місяців тому

    It's really amazing 👏...

  • @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. 🙂

  • @dooshimagames
    @dooshimagames Рік тому

    Thanks ❤, I understand it better now

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

    Just dropped a Subscribe because man your videos help immensely!

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

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

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

  • @SamuelQuarshie-n1y
    @SamuelQuarshie-n1y Місяць тому

    Great work

  • @4TqrBTS7
    @4TqrBTS7 5 місяців тому +7

    I don't get it

  • @chadkerr6065
    @chadkerr6065 Рік тому

    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 6 місяців тому

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

  • @aledjane2013
    @aledjane2013 Рік тому

    I really appreciate you ❤❤❤

  • @SwanandJoshi-sj2zb
    @SwanandJoshi-sj2zb 8 місяців тому

    Which compilwr do you use ?

  • @omerfaruksemih8590
    @omerfaruksemih8590 10 місяців тому

    clear and understandable. Thanks!

  • @OIP_1
    @OIP_1 Рік тому

    thanks for this, really clear and succinct explanation

  • @rodney-l4i
    @rodney-l4i Рік тому

    Thank you very much for this explanation

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

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

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

    Very clear explaintation thank you.

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

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

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

    İt is wonderful to watch it.😀

  • @anthonywoods2550
    @anthonywoods2550 Рік тому

    Good coding. Thank you.

  • @dexamoateng5605
    @dexamoateng5605 Рік тому

    Please which IDE do you use?

  • @AnnetyMalake
    @AnnetyMalake 2 місяці тому

    Can't we ask questions in these tutorials??

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

    what theme do you use?

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

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

  • @nayanjyoti207
    @nayanjyoti207 4 місяці тому +1

    using the Indian name was awesome 😂

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

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

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

    String pin kaduuu
    Int pin

  • @FatihuMandeya
    @FatihuMandeya 6 місяців тому

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

    • @lucasvillani5484
      @lucasvillani5484 3 місяці тому

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

  • @SamuelAkinyemi-g8f
    @SamuelAkinyemi-g8f 10 місяців тому +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 10 місяців тому +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 7 місяців тому +1

      jesus came in you