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
Why do pointers exist?
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
What is polymorphism programming?
Why do we use inheritance?
What is constructor in oop?
What is the purpose of polymorphism?
What are the advantages of polymorphism?
Which method cannot be overridden?
Where is pseudocode used?
What is meant by oops concept?
What is polymorphism and types?
What is pointer in oop?
What is encapsulation c#?
What is oops concept with example?
Where You Can Use Interface in your Project