Re: [algogeeks] Virtual table

2011-10-26 Thread SAMM
The Virtual tables are contructed during compile time . The compiler create a pointer vptr to point to the vtable during but it doesn't contain the address of the function which is declared as virtual because it is still not loaded in memory . Becoz is suppose to link the modules and header files t

[algogeeks] Virtual table

2011-10-26 Thread himanshu kansal
when the vtable of a class (if it has a virtual function ) is created and loaded in memory 1. at the time of class declaration (before the 1st object of that class is created) 2. when the 1st object of that class is created 3. its compiler dependent .(not specified by c++ standard) -- You re

Re: [algogeeks] virtual table count

2011-09-09 Thread bharatkumar bagana
as of my knowledge ... virtual table is created for every class which has either a virtual function or derived from a class which has virtual function.. suppose..B is child of A , if u create an obj for A and called virtual method overloaded in B,then the method in A only be called... So, in ur pro

[algogeeks] virtual table count

2011-09-09 Thread ravi maggon
let their be two classes A and B having a virtual function. class C derives both class A and B. How many virtual table does class C have? -- Regards Ravi Maggon Final Year, B.E. CSE Thapar University -- You received this message because you are subscribed to the Google Groups "Algorithm Geek