Why it is considered that the virtual functions are slow?
It is so, because the additional time is spent for the search of the desired function address. Each object has a pointer to a virtual function table. This table is looked for the needed function and the detected function is called. In fact, the losses are not so great. New compilers are very good in optimizing the storage addresses of the virtual functions and their search. And even in the new processors some changes were made in order to make a call of the function from the indirect address faster.
assignment-expert site is amazing !! , you respond quickly , you gives assignment in time ,the quality of the assignments are more than excellent . I am more than satisfied , I recommend your site a lot!! , you make student life much much easier
thank you very much !