+ Reply to Thread
Results 1 to 2 of 2

Thread: What is "vtable" in C++?

  1. #1

    What is "vtable" in C++?

    What is "vtable" in C++?

    When a class will contain "vtable" when it will not?

    Does below class have "vtable", if yes, how?

    Code:
    class CStudent
    {
    public:
         CStudent() {}
         virtual ~CStudent() {} 
    } ;
    Please help me understanding this basic C++ concept.

  2. #2
    Junior Member
    Join Date
    Feb 2012
    Posts
    49
    Compiler creates a vtable for a class having single 'virtual' method.

    'vtable' is a virtual function table. It is a table of functions defined with 'virtual keyword.

    This is a feature using which C++ implements the dynamic/run-time binding.

    Hope this helps.

+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts