Dude these are the best tutorials on oop I couldn’t find detailed info on constructors except here!
@PortfolioCourses2 жыл бұрын
I'm really glad that you enjoy them! :-)
@leythecg Жыл бұрын
No one explains it better & in such a short time! Thank you very much!
@KuchAmorphous3 ай бұрын
Making it easier then my lecturer❤
@massimorusso3894 Жыл бұрын
Video eccezionale sul c++. Un saluto 👍 dal'Italia
@PortfolioCourses Жыл бұрын
Grazie! :-)
@floatoss Жыл бұрын
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?
@dr_bodling Жыл бұрын
Love your videos! Quick question -- why would you need to define the class member function outside the class definition?
@PortfolioCourses Жыл бұрын
Good question! It’s very popular in practice to define the functions outside the class, because it separates the definition of “the interface” from “the implementation”. When we define the functions in the class we need to scroll through all the function definitions to see what functions are actually present. If just the function prototypes are in the class, then we can very easily see the “interface” of the class in terms of what functions are available. Some people say it’s bad to define member functions in the class but for small classes this is fine and may even be more readable. :-)
@dr_bodling Жыл бұрын
@@PortfolioCourses ahh I see! That makes sense now. Thanks so much for the thorough explanation! :)
@M10-r8q7h8 ай бұрын
Aaaaaàaaaaaaaaa@@dr_bodling
@daivshow45747 ай бұрын
@@PortfolioCourses omg thank you so much < 3
@safi955Ай бұрын
Great explanation , I preffer a dark editor :)
@Jose-kv4uh2 жыл бұрын
I like your teaching.... tell the name of the editor to download
@PortfolioCourses2 жыл бұрын
I'm glad that you enjoy the way I'm teaching the concepts! :-) In this video I am using Xcode, which is an editor that is available on Mac computers. :-)
@aadhuu2 жыл бұрын
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)
@PortfolioCourses2 жыл бұрын
You can actually still use printf/etc in C++ too! But streams are a more object oriented approach... for example the > operators can be made to work with objects of new types that we define, something we can't really do with printf. :-)