Pergunta de entrevista da empresa GE

when you you declare a class as virtual and there is dynamic binding how does the process take place??

Resposta da entrevista

Sigiloso

27 de jun. de 2011

there is a virtual table list containing owner class and the methods and their a pointer which points to this table depending on the type of reference the pointer goes in the table and chooses the method from table based on reference