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

Explain shallow copy?

606


Write a struct time where integer m, h, s are its members?

511


Explain the advantages of using friend classes.

567


Which should be more useful: the protected and public virtuals?

592


what is a reference variable in C++?

648






Explain one method to process an entire string as one unit?

917


Array base access faster or pointer base access is faster?

1807


Differentiate between the message and method in c++?

600


What is the use of namespace std in C++?

609


Can a built-in function be recursive?

574


What is a flag in c++?

601


How do you declare a set in c++?

520


What is cin clear () in c++?

600


What are register variables?

637


What is the difference between a type-specific template friend class and a general template friend class?

547