@@devendragangrade Mr. Devendra, I find myself watching your explanation again years later. I'm preparing for a job interview and your video is the best on the topic. Thank you once again! :)
@devendragangrade3 жыл бұрын
@@krisitak glad it is helping you. Good luck for your interview.:)
@sonuyadavaffriya2 жыл бұрын
I couldnt find 'bases' member in std::type_info
@devendragangrade2 жыл бұрын
The library routine used for dynamic_cast must check though a list of base classes. Compiler adds it to the structure as per routine followed by dynamic_cast
@YashArora7215 жыл бұрын
Nice explanation of RTTI. I just have a doubt on how you copied the vtables of A and B in C, in C vptr of C should point to instance of C which in itself should contain the respective function ptrs.
@devendragangrade5 жыл бұрын
First of all Thank you for watching this video. On high level your understaing is correct and I have shown the same that the virtual table of C is represented as C::. Here I have explained the internal implementation of virtual mechanism. Compiler first copies the memory model of base classe then make changes accordingly. Once done, C's virtual pointer point's to C's virtual table and so on leaving non virtual funtion pointers as it is. Hope it makes more clear.