Thank you so much! I was having problems with this and practically ripping my hair out. you explained this in a way that was simple and easy to understand. Good job!
Out of everything I've learned so far in C++ I was struggling to get my head around classes + objects tysm man You made me feel like a fool with the terminology.
Holy $#!7 man. Something that I've struggled with each time I tried to learn programming finally clicked for me when you walked through how a class is basically just a way to create a new data type that can't be represented by a single, pre-existing data type.
Your tutorials are great! Thank you for this initiative! You should teach advanced courses on C++ as well (exploring object-oriented data structures). The internet is full of material of bad quality that only serves the purpose of confusing learners.
Hey Mike, great tutorials. I don't know if you read comments, but just I can't find a solution to this: I need to make a function that when called, will create an instance of a class. However, each instance should be automatically named (I mean to handle lots of them like in this video: book 1, book 2, book 700...). I could make an integer and call it index, and then have a constructor add 1 to it every time an instance is created so when it is created it should be called book and then the current integer number, but the syntax won't let me do it. Any ideas? Thank you!
I know there's a way where the user can input the name of the book instead of hardcoding it into the variable, but I don't know how to do that with classes.
Maybe I can help. I managed to figure this out through some experimenting after I saw your question. Basically, once you have created your class and want the user to fill in one of the attributes for you, try something similar to this: Book userBook; // Created a "Book" class object called "userBook" cout
When you set that as public, it means that the class can be used in any part of the program. Inside every block of code, it will be recognized if you call it.
prolly the best explained example of this ever. thanks man!
I now finally understand the relationship between a class and its objects. TY mike dane!!!
I have read my text book, and watched numerous videos, but still have not been able to comprehend this. This video made it finally click! Thank you!
This is SUCH a good explaination, I can not believe how easily you framed this, thank you!
Thank you so much! I was having problems with this and practically ripping my hair out. you explained this in a way that was simple and easy to understand. Good job!
Out of everything I've learned so far in C++ I was struggling to get my head around classes + objects tysm man You made me feel like a fool with the terminology.
Well explained! Thank you.
This video was so help full thank you
Broo.. Like I just don't understand how your that good at explaining stuff :0 Your not missing anything :)
@@mohamadalhalabi397 :(
Holy $#!7 man. Something that I've struggled with each time I tried to learn programming finally clicked for me when you walked through how a class is basically just a way to create a new data type that can't be represented by a single, pre-existing data type.
Better explanation than my university lecture!
Thank you so much ! Very helpful video.
Thanks for this great tutorial!
It really helps me a lot in doing my c++ homework.
Thanks....
Man I don't know how to thank you, you explained it🔥
Your tutorials are great! Thank you for this initiative! You should teach advanced courses on C++ as well (exploring object-oriented data structures). The internet is full of material of bad quality that only serves the purpose of confusing learners.
Good to meet your work.
Hi thanks for your help with the full course in C++, Im about to start object oriented progrmmaing now
Great explanation! I came here bc my university textbook couldn't really explain the concept well.
awesome man
You’re the best!
Please I would be glad if you could do a video on OPP where the header file and the implementation file are separate from the main.cpp
Thankssssss
Hey Mike, great tutorials. I don't know if you read comments, but just I can't find a solution to this: I need to make a function that when called, will create an instance of a class. However, each instance should be automatically named (I mean to handle lots of them like in this video: book 1, book 2, book 700...). I could make an integer and call it index, and then have a constructor add 1 to it every time an instance is created so when it is created it should be called book and then the current integer number, but the syntax won't let me do it.
Any ideas? Thank you!
I know there's a way where the user can input the name of the book instead of hardcoding it into the variable, but I don't know how to do that with classes.
Maybe I can help. I managed to figure this out through some experimenting after I saw your question. Basically, once you have created your class and want the user to fill in one of the attributes for you, try something similar to this:
Book userBook; // Created a "Book" class object called "userBook"
cout
I didn't understand why we use the word public in class what's it's job?
*Tolkien :)
What's the point in "public" in tutorial no. 27, i think you forgot to mention any information about that word "public", just what the hell it is?????
When you set that as public, it means that the class can be used in any part of the program. Inside every block of code, it will be recognized if you call it.
@@joaovitor-nn1zy then what about private and protected? where can/cannot they be used?
better to struct