suppose A is a base class and B is the derved class. Both have a method foo which is defined as a virtual method in the base class. You have a pointer of classs B and you typecast it to A. Now when you call pointer->foo, which method gets called? The next part of the question is, how does the compiler know which method to call?
3 9834Which is faster post increment or pre increment ? and in which cases should u use either - to increase speed?
4 14325Post New EA Electronic Arts OOPS Interview Questions
Can we have multiple classes in single file ?
What is the difference between var and value?
What does mapstatetoprops do?
What is stateful in java?
Why do we need hibernate?
Why the earth to phase voltage is high 250 compare to other two phases
Give a brief idea about jquery mobile? : jQuery Mobile
What is the use of running the scripts in Hidden-mode in UFT?
Is scala easy to learn?
exit () is used to a) exit () terminates the execution of the program itself b) exit () terminates the execution of the loop c) exit () terminates the execution of the block d) none of the above
What is ide with example?
what is t code of all expences general legder?
what is macrophage suspension ?
Advanced problems related to Data Structures were asked
how to calculate bearing width