You are here:

C++/Query about VTBALE

Advertisement


Question
is VTABLE created for interface? and what is the concept of novirtual function?

Answer
> is VTABLE created for interface?

Yes.

Unless an implementation provides you with a language extension that allows you to suppress the generation of a vtable, and you use it. For example __declspec(novtable)
See: http://msdn.microsoft.com/en-us/library/k13k85ky(v=vs.110).aspx


>  concept of novirtual function?

"If it is not 'virtual', the method is resolved 'early' and the function called is selected according to the declared type of the pointer or reference" - wiki
See: http://en.wikipedia.org/wiki/Virtual_function  

C++

All Answers


Answers by Expert:


Ask Experts

Volunteer


vijayan

Expertise

my primary areas of interest are generic and template metaprogramming, STL, algorithms, design patterns and c++11. i would not answer questions about gui and web programming.

Experience

about 15 years or so

Education/Credentials
post graduate engineer

©2016 About.com. All rights reserved.