Interfaces in C++ (Pure Virtual Functions)

preview_player
Показать описание


Рекомендации по теме
Комментарии
Автор

I don't think these videos are for beginners. But since I have some background in programming and C++, I found them very helpful.

danielc
Автор

This video just overrode the thinking method of my brain class.

karmaindustrie
Автор

I’m an Android developer but whenever I want to take a break, I watch a few videos of this c++ series. It is helping me deepen my knowledge of programming.

naserghodsian
Автор

It's too rare that I don't need to set the video playback 1.25x or 1.5x

austinfritzke
Автор

clears a whole lot of uncertainties I don't even know I have deeply in my mind, simple and straight forward. GJ!

vcpmxvs
Автор

This was the first video where i didnt understand a single thing.

MrKrusten
Автор

Hey Cherno, love this series. I'm learning a lot. Thank you
just got lost on the last two videos about virtual functions, lol. I hope it get clear later on

MarioMartinez_
Автор

I viewed this video five months ago but couldn't grasp its meaning until recently when I faced difficulty understanding senior-level code at my workplace. After struggling with comprehending their code, I revisited your video, and everything became clear. Thank you very much! I recommend every junior developer to examine others' code; it helps in understanding the intricacies of features in C++ and when and why to utilize them. Happy coding to all!

abdodaood
Автор

This one was a little fast for me, but so far I am loving the series! getting done about 1-2 Videos a day with practice and tasks I set myself. Thank you for creating the best programming tutorial I've found on the Internet thus far!

ricardosendes
Автор

for the first time in my life, i played a video at .75X, my brain cells have been ashamed .

battlecrusecruse
Автор

First of all, Thank you, for such great cpp series.

I think, passing interface to function and using it, is the best usecase of interface as it allow us to have standard logic irrespective of what type of object passed as argument.

sachinwalunjakar
Автор

A pure virtual function serves as a declaration (it also imposes a requirement on derived classes to provide their own implementation). This declaration is needed when assigning a pointer of a base class type (by base, I'm referring to the abstract class — the class that provides the pure virtual function) to an object of a derived class type and subsequently calling the function. Without a pure virtual function (or just a virtual function if you want to implement the function inside the base class), the base pointer lacks awareness of any of the function's implementation in derived classes. Not every derived class needs to explicitly implement the function. Instead, if a derived class lacks an implementation, the program will search through the inheritance hierarchy to find one, starting from the current derived class and progressing back to the base class. Only if no implementation is found throughout the hierarchy does it result in a compile-time error.

JaydenCloudwalker
Автор

Very good episode, I always struggled with this and now feel ashamed because it's so dead simple, thanks to the brilliant explanation.

edwinov
Автор

I've got cpp exam in 2 days and I came for const function but you also answered my questions about mutable, Love you man <3

OxHxO_
Автор

The deeper I get into learning C++... the more difficult it becomes to wrap my head around things. This really started to hit me with the Constructors/Destructors videos by you...
I will keep looking into it tho!

Specialce
Автор

Thank you for this series. I'm a PLC programmer by trade but I started traditional programming out of pure interest. I came across Interfaces in TwinCAT structured text and could not figure out why they were useful. Thanks to this video I FINALLY understand that they are simply a contract between classes (Function Blocks and methods in TwinCAT). Thank you again!

DonnyJ_CountryLife
Автор

Can you make a video about memory leaks?

icebrn
Автор

one of my fav series these days on youtube

Djzaamir
Автор

Thanks again for the series. A bit of critique on this particular episode: while you're talking and editing you're bouncing between lines rather rapidly and it gets confusing occasionally. If you could be a bit more deliberate in the editor, I think it would help clarify things..

LucidStew
Автор

Because some have asked why pointers were used: you have to use pointers in C++ in order to get polymorphism. Try doing it without pointers and even with the virtual keyword you will not get polymorphism / dynamic dispatch.

MsJavaWolf