Thursday, April 8, 2010

Inline Virtual Function

Inline doesn't go with Virtual  . Generally compiler ignores inline directive for virtual function.
Inline has to be done at compile time but Virtual says wait until Run time At compile time compiler doesn't know which function to insert .
 Point    :Virtual function can be inlined if they are called by OBJ (not by pointer ) But we hardly use virtual function without Pointer
   

2 comments:

Followers