How the V-Table mechanism works?

Answer Posted / achal

V-Table mechanism works on principle of dynamic binding
i.e. which version of the function has to be called is
decided by CPU at run time.
Use of virtual functions make the execution slower. Not all
the objects of the same class have different V-Table.

Is This Answer Correct ?    2 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is static class data?

579


Is there any difference between int [] a and int a [] in c++?

561


How can you specify a class in C++?

808


What are c++ templates used for?

625


What is a responder chain?

578






How would you use the functions memcpy(), memset(), memmove()?

628


What is c++ programming language?

586


What is setfill c++?

689


What is #include math h in c++?

579


Is swift faster than go?

623


How did c++ get its name?

579


What is a rooted hierarchy?

689


What are the advantage of using register variables?

645


Can a program run without main?

638


Please explain the reference variable in c++?

624