Virtual Function Table (Lecture 46)

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ธ.ค. 2024

ความคิดเห็น • 5

  • @dirkbraun854
    @dirkbraun854 3 ปีที่แล้ว

    Very well explained. Thank you. Good idea to start off from C to explain how the VFTs actually get compiled. Just used this as a quick recap on how things work behind the scenes to deepen my understanding.

  • @prasadsardeshmukh3898
    @prasadsardeshmukh3898 5 ปีที่แล้ว +8

    Thank you very much Prof. Das, excellent explaination.
    For viewers, the actual topic of VFT starts @14:26

  • @manmohankrishna2407
    @manmohankrishna2407 5 ปีที่แล้ว +14

    there is an error @17:39,
    B *p=&d;
    p->f(25); should do B::f(p,25) since f has not been declared virtual in the class B.
    Thank me later and thanks from me for making me capable for finding these errors. Haha

  • @pandurugovind7728
    @pandurugovind7728 3 ปีที่แล้ว

    Hi Sir in last example class A --> Class B -- Class C A*pA and B *pB which type of the object type is containing. could you please clear it.