Class Member Functions (aka Methods) | C++ Tutorial

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Dude these are the best tutorials on oop I couldn’t find detailed info on constructors except here!

mattmjlg
Автор

No one explains it better & in such a short time! Thank you very much!

leythecg
Автор

Video eccezionale sul c++. Un saluto 👍 dal'Italia

massimorusso
Автор

can someone let me know what ide is being used here?

raheel
Автор

Hey Kevin, I appreciate your lectures a lot! But can I ask you to also give an explanation, as to "what" actually happens in the background when we declare methods for an object type? Like, when I try to relate class to "structs" in C, I can see that each structure variable has many components as defined by us, and that several such structure variables will have their own variables of the same type as declared in the structure definition ( I am very comfortable to think in terms of memory diagrams ). But in here, I think I can correlate the variables being defined in the class, but what about the functions? Does each instance of the class have it's own function? Or is it a single function that is declared to the whole class, and somehow under the hood, we have function pointers and stuff like that?

Also, when would we require to have a private function that takes no arguments at all? Like you gave an example of Area in this video, I don't see it serving any additional benefit than having it as a public one. So when would we actually even require private methods?

floatoss
Автор

I'm done with C in my first semester. My second semester started and we have C++. I haven't explored many things in C++ yet. But from what I've seen, except cin and cout all basic things like arrays, structures worked with the same syntax. Why is it so that only input and output operations have different syntaxes? (I made another catch, that is we don't need to use type specifiers while using these input output operations which is a bliss)

aadhuu
Автор

Love your videos! Quick question -- why would you need to define the class member function outside the class definition?

dr_bodling
Автор

I gotta say, that is not the voice I was expecting. Sublime explanation tho!

Nahomyirga-sgfe
Автор

I like your teaching.... tell the name of the editor to download

Jose-kvuh
Автор

But If we define member function outside class?

laughtersforever
Автор

Great explanation, I preffer a dark editor :)

safi