Introduction To Classes And Objects | C++ Tutorial

  Рет қаралды 50,876

Portfolio Courses

Portfolio Courses

2 жыл бұрын

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!

Пікірлер: 75
@udarue
@udarue 4 ай бұрын
your explanations are most detailed, structured and easy to understand in KZfaq. Thank you for your effort!
@elijahmiles1062
@elijahmiles1062 Жыл бұрын
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 10 ай бұрын
Same! This made classes looks easy to grasp, while my lecturer made it look astronomical difficult
@DreamingEllie
@DreamingEllie 2 ай бұрын
this is literally the only tutorial where classes makes sense to me. i am so grateful you have no idea.
@BKFirst
@BKFirst 10 ай бұрын
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!!
@aadhuu
@aadhuu 2 жыл бұрын
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 жыл бұрын
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.
@ussumaneembalo2643
@ussumaneembalo2643 6 ай бұрын
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.
@ahtalk9847
@ahtalk9847 8 ай бұрын
I appreciate this video my guy, it simplified it while giving example code that can actuallly be used in a regular program.
@PortfolioCourses
@PortfolioCourses 8 ай бұрын
I’m reply glad you enjoyed it! :-)
@ApunDatta
@ApunDatta 3 ай бұрын
Thank you very much, this was really helpful for understanding the basics of how classes work, much appreciated!
@MultiHeywatsup
@MultiHeywatsup Ай бұрын
such diversity in classes, najeeb, kulwinder, robert :P
@PortfolioCourses
@PortfolioCourses 25 күн бұрын
Haha I’m from Canada, we have extremely diverse classes here. :-)
@JayySLEEZEE
@JayySLEEZEE 4 ай бұрын
after hours of searching i found u and i finally understood thank you so much
@MrJever180
@MrJever180 2 ай бұрын
Absolutely amazing explanation!!!!
@easydctv
@easydctv 3 ай бұрын
Nice very detailed explanation!
@kimstein907
@kimstein907 3 ай бұрын
Thank you so much. You have helped me with this material
@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! :-)
@Leetngreet
@Leetngreet Жыл бұрын
Wow, you are a natural educator thankyou!
@PortfolioCourses
@PortfolioCourses Жыл бұрын
You're welcome, I'm glad you enjoyed the video! :-)
@dooshimagames
@dooshimagames Жыл бұрын
Thanks ❤, I understand it better now
@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!! :-)
@aubreydebruyn84
@aubreydebruyn84 Жыл бұрын
The blueprint and house analogy brought it together. Thank you
@PortfolioCourses
@PortfolioCourses Жыл бұрын
That's excellent, and you're welcome! :-)
@sytnoff1
@sytnoff1 3 ай бұрын
Anal -ogy lol
@muhammadluqman3452
@muhammadluqman3452 Жыл бұрын
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.
@RandomButCool
@RandomButCool 8 ай бұрын
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 8 ай бұрын
That’s excellent that the video helped you out, good luck in that c++ class! :-)
@studentHoobs
@studentHoobs 8 ай бұрын
Great explanation!! This helped me so much.
@PortfolioCourses
@PortfolioCourses 8 ай бұрын
I'm glad to hear the video helped you out! :-D
@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! :-)
@MoherZO
@MoherZO 3 ай бұрын
Best tutorial ever.
@PortfolioCourses
@PortfolioCourses 3 ай бұрын
I'm glad you enjoyed it! :-)
@yvanmartinnzeunou2037
@yvanmartinnzeunou2037 2 ай бұрын
It's really amazing 👏...
@OIP_1
@OIP_1 11 ай бұрын
thanks for this, really clear and succinct explanation
@PortfolioCourses
@PortfolioCourses 11 ай бұрын
You're welcome, I'm glad you found it clear! :-D
@omerfaruksemih8590
@omerfaruksemih8590 5 ай бұрын
clear and understandable. Thanks!
@PortfolioCourses
@PortfolioCourses 5 ай бұрын
You're welcome! :-)
@aledjane2013
@aledjane2013 7 ай бұрын
I really appreciate you ❤❤❤
@scythra5410
@scythra5410 Жыл бұрын
Very clear explaintation thank you.
@PortfolioCourses
@PortfolioCourses Жыл бұрын
You're very welcome, I'm glad that you enjoyed the video! :-)
@user-eq6dq5jr7p
@user-eq6dq5jr7p Жыл бұрын
Thank you very much for this explanation
@PortfolioCourses
@PortfolioCourses Жыл бұрын
You’re very welcome Rodney! :-)
@rezahajivand7498
@rezahajivand7498 8 ай бұрын
Very good teaching 🎉🎉🎉🎉🎉🎉🎉
@anthonywoods2550
@anthonywoods2550 Жыл бұрын
Good coding. Thank you.
@PortfolioCourses
@PortfolioCourses Жыл бұрын
You're welcome Anthony, I'm glad you enjoyed it! :-)
@SwanandJoshi-sj2zb
@SwanandJoshi-sj2zb 3 ай бұрын
Which compilwr do you use ?
@yigitcoban9823
@yigitcoban9823 Жыл бұрын
İt is wonderful to watch it.😀
@PortfolioCourses
@PortfolioCourses Жыл бұрын
I’m glad you enjoyed the video! :-)
@chadkerr6065
@chadkerr6065 7 ай бұрын
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 Ай бұрын
yes you can save the file as .hpp and use the method you said for example #include "bankaccount.hpp"
@mapd_089
@mapd_089 2 жыл бұрын
Is it better to use a struct or a class?
@PortfolioCourses
@PortfolioCourses 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. :-)
@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 Жыл бұрын
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. 🙂
@amkhrjee
@amkhrjee Жыл бұрын
Indian names in the examples lol. Video was awesome as usual.
@PortfolioCourses
@PortfolioCourses Жыл бұрын
Thank you! :-)
@user-fw1ir3gj9y
@user-fw1ir3gj9y Ай бұрын
Isn't this the same as not including the class and just typing the bank accounts
@40rdj34
@40rdj34 Жыл бұрын
I thought when you include a pin you will insert int instead of string
@PortfolioCourses
@PortfolioCourses Жыл бұрын
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 3 ай бұрын
String pin kaduuu Int pin
@Meisgreen
@Meisgreen 13 күн бұрын
I don't get it
@user-bv2bu7ub7z
@user-bv2bu7ub7z 5 ай бұрын
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 5 ай бұрын
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 Ай бұрын
jesus came in you
Public And Private Access Specifiers | C++ Tutorial
8:49
Portfolio Courses
Рет қаралды 36 М.
Pleased the disabled person! #shorts
00:43
Dimon Markov
Рет қаралды 30 МЛН
Викторина от МАМЫ 🆘 | WICSUR #shorts
00:58
Бискас
Рет қаралды 4,9 МЛН
لااا! هذه البرتقالة مزعجة جدًا #قصير
00:15
One More Arabic
Рет қаралды 8 МЛН
Каха заблудился в горах
00:57
К-Media
Рет қаралды 10 МЛН
Class Templates | C++ Tutorial
12:48
Portfolio Courses
Рет қаралды 45 М.
31 nooby C++ habits you need to ditch
16:18
mCoding
Рет қаралды 756 М.
Python Object Oriented Programming (OOP) - For Beginners
53:06
Tech With Tim
Рет қаралды 3,3 МЛН
Object Oriented Programming (OOP) in C++ Course
1:30:26
freeCodeCamp.org
Рет қаралды 2,5 МЛН
Fundamental Concepts of Object Oriented Programming
9:16
Computer Science
Рет қаралды 876 М.
how Google writes gorgeous C++
7:40
Low Level Learning
Рет қаралды 838 М.
Constructor Basics | C++ Tutorial
7:08
Portfolio Courses
Рет қаралды 21 М.
String In Char Array VS. Pointer To String Literal | C Programming Tutorial
9:58
Nika loves to eat chicken #cat #cats
0:17
Princess Nika cat
Рет қаралды 84 МЛН
The poor girl couldn't take care of the cat 😢😔
0:38
Ben Meryem
Рет қаралды 14 МЛН
Ouch.. 🤕
0:30
Celine & Michiel
Рет қаралды 24 МЛН
Dad thought daughter wanted his food #shorts
0:10
The Nixon Fam
Рет қаралды 19 МЛН
 tattoo designs  #tubigontattooartist #nctdream #straykids #txt
0:17
Hp Shorts video
Рет қаралды 31 МЛН