Doubt in Vptr -want to know how it is getting Vtable address
Posted
by gobi
on Stack Overflow
See other posts from Stack Overflow
or by gobi
Published on 2010-05-21T10:57:00Z
Indexed on
2010/05/21
11:10 UTC
Read the original article
Hit count: 283
c++
Hi all, i wanted to know how vptr getting vtable base address.
for instance
class A
{
virtual getdata();
int a;
}
now,
A obj; /// here vptr getting vtable's base address.
i wanted to know this mystery.. Thanks in advance
© Stack Overflow or respective owner