How compiler selects(internally) required overridden
function in inheritance?

Answer Posted / deepthi

By using virtual tables,

when Compiler views virtual in a class declaration then for
each class it creats one virtual table

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do pointers exist?

653


class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash

1687


What is polymorphism programming?

593


Why do we use inheritance?

626


What is constructor in oop?

578






What is the purpose of polymorphism?

668


What are the advantages of polymorphism?

570


Which method cannot be overridden?

572


Where is pseudocode used?

560


What is meant by oops concept?

604


What is polymorphism and types?

594


What is pointer in oop?

528


What is encapsulation c#?

598


What is oops concept with example?

573


Where You Can Use Interface in your Project

1419