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!
- แนวปฏิบัติและการใช้ชีวิต
this is literally the only tutorial where classes makes sense to me. i am so grateful you have no idea.
first time in 20 yrs ever complimenting how sum1 explains something, rly didn't get this stuff b4 watching the vid, Well done bro.
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! :-)
Same! This made classes looks easy to grasp, while my lecturer made it look astronomical difficult
your explanations are most detailed, structured and easy to understand in TH-cam. Thank you for your effort!
This is the best explanation of classes in C++ I've found so far. Thank you!!
Very good explanation!. Definitely gonna recommend your channel to my friends!. Please continue your work sir! You'll gain many more subs for sure!
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.
I appreciate this video my guy, it simplified it while giving example code that can actuallly be used in a regular program.
I’m reply glad you enjoyed it! :-)
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.
Thank you very much, this was really helpful for understanding the basics of how classes work, much appreciated!
thank you for explaining this in the simplist way possible so my simple brain can comprehend it
after hours of searching i found u and i finally understood thank you so much
Absolutely amazing explanation!!!!
Thank you so much. You have helped me with this material
Wow, you are a natural educator thankyou!
You're welcome, I'm glad you enjoyed the video! :-)
The blueprint and house analogy brought it together. Thank you
That's excellent, and you're welcome! :-)
Anal -ogy lol
Nice very detailed explanation!
Thanks ❤, I understand it better now
This was super helpful for understanding this topic.
I’m super happy to hear it was helpful for you! :-)
Great explanation!! This helped me so much.
I'm glad to hear the video helped you out! :-D
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.
You’re very welcome Shah, and thanks so much for sharing this with your class discord, I really appreciate that! :-)
It's really amazing 👏...
Just dropped a Subscribe because man your videos help immensely!
I'm so glad to hear these videos have helped you, and welcome aboard!! :-)
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.
That’s excellent that the video helped you out, good luck in that c++ class! :-)
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 .
You're very welcome! :-) And I totally agree that practical applications of ideas can help us to understand things.
clear and understandable. Thanks!
You're welcome! :-)
thanks for this, really clear and succinct explanation
You're welcome, I'm glad you found it clear! :-D
I really appreciate you ❤❤❤
Thank you very much for this explanation
You’re very welcome Rodney! :-)
Very clear explaintation thank you.
You're very welcome, I'm glad that you enjoyed the video! :-)
Best tutorial ever.
I'm glad you enjoyed it! :-)
Very good teaching 🎉🎉🎉🎉🎉🎉🎉
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?
Good coding. Thank you.
You're welcome Anthony, I'm glad you enjoyed it! :-)
İt is wonderful to watch it.😀
I’m glad you enjoyed the video! :-)
Which compilwr do you use ?
Indian names in the examples lol. Video was awesome as usual.
Thank you! :-)
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
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. 🙂
Is it better to use a struct or a class?
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/
Please which IDE do you use?
In this video I am using Xcode on Mac OS. :-)
what theme do you use?
In this video I am using the Default (Light) theme in Xcode on a Mac. :-)
I thought when you include a pin you will insert int instead of string
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. :-)
String pin kaduuu
Int pin
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.❤
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.❤
jesus came in you