Does virtual table get created for absract classes ?
Posted on: Mon, 2007-02-26 02:31
Does virtual table get created for absract classes ?
Hi,
Do virtual tables get created for abstract classes?
If yes why ?
Thanks,
Mahen

yes the virtual table is created for each class which has virtual function... for abstract class also the vtable will be created..
for more information
Check here and here
Thanks for replying meganathan, I have edited your urls to make them live links :) by using < a > < /a > html tags.
I am still trying to find a better way of maknig the forum posting more user friendly. I had send you a pm today, did you got it ?
Abstract classes have one or more of its members that are not implemented; but their signatures declared. Typical use of these classes is to specify minimum interfaces that have to be provided by the classes that derive from these abstract classes.
For polymorphism to work, that is one can still use a pointer to abstract class to point to an instance of a derived class and invoke the methods originally declared in the abstract class, even abstract classes have virtual table created. Virtual table is a primary
mechanism using which polymorphism is implemented in C++.
HTH,
Sandeep
i didn't get anything .. can i know what is meant by pm ..
pm = Private Message
Unfrotunately yesterday I had to uninstall that module so now we can not communicate by private messages. It seems to be a little buggy and I was worried about security reasons.
We can always ofcourse communicate through my id or throuch http://www.coders2020.com/contact form.
In that pm, I had just asked you How did you like the site, and what things you want in it ?